mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
check for a bad read when reading the command byte of a connectionless packet
This commit is contained in:
parent
eb636ea16f
commit
81e3a63791
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue