check for a bad read when reading the command byte of a connectionless packet

This commit is contained in:
Bill Currie 2010-04-26 12:41:04 +00:00 committed by Jeff Teunissen
parent eb636ea16f
commit 81e3a63791

View file

@ -861,6 +861,8 @@ CL_ConnectionlessPacket (void)
MSG_ReadLong (net_message); // skip the -1
c = MSG_ReadByte (net_message);
if (net_message->badread)
return;
clcp_temp = 0;
if (!cls.demoplayback
&& (cl_paranoid->int_val