Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet
This commit is contained in:
parent
a171ad9f65
commit
016ce3ac40
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user