mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
close a small security hole where a malicious challenge could potentially
wreak havoc with info strings.
This commit is contained in:
parent
b81f77803c
commit
73b68e788e
1 changed files with 5 additions and 0 deletions
|
@ -986,6 +986,11 @@ CL_ConnectionlessPacket (void)
|
|||
|
||||
if (c == S2C_CHALLENGE) {
|
||||
Con_Printf ("challenge");
|
||||
if (cls.state >= ca_connected) {
|
||||
if (!cls.demoplayback)
|
||||
Con_Printf ("\nDup challenge received. Ignored.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
s = MSG_ReadString (net_message);
|
||||
cls.challenge = atoi (s);
|
||||
|
|
Loading…
Reference in a new issue