diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-03-04 10:23:38 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-04 10:23:38 -0600 |
| commit | c109f68075d8428a23a831486d7b13e325e439f4 (patch) | |
| tree | 33f64ae1099ece554a4a624196ac348e68f1b9c5 | |
| parent | a171ad9f65aa04cad64f16775f8fa095807ac66b (diff) | |
| parent | 016ce3ac4035ee4b4e86560de9f3159398a73132 (diff) | |
Merge pull request #485 from AttorneyOnline/quickfix
Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet
| -rw-r--r-- | src/packet_distribution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index b2e5d3ed..ea4c77aa 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -627,7 +627,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (type == 0 || type == 1) { - if (f_contents.size() < 2) + if (f_contents.size() < 3) goto end; // The time as displayed on the clock, in milliseconds. |
