diff options
| author | Crystalwarrior <varsash@gmail.com> | 2021-03-04 14:03:37 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2021-03-04 14:03:37 +0300 |
| commit | 016ce3ac4035ee4b4e86560de9f3159398a73132 (patch) | |
| tree | 33f64ae1099ece554a4a624196ac348e68f1b9c5 /src/packet_distribution.cpp | |
| parent | a171ad9f65aa04cad64f16775f8fa095807ac66b (diff) | |
Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet
Diffstat (limited to 'src/packet_distribution.cpp')
| -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. |
