Merge pull request #485 from AttorneyOnline/quickfix

Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet
This commit is contained in:
oldmud0 2021-03-04 10:23:38 -06:00 committed by GitHub
commit c109f68075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.