Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet

This commit is contained in:
Crystalwarrior 2021-03-04 14:03:37 +03:00
parent a171ad9f65
commit 016ce3ac40

View File

@ -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.