mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 14:32:55 +00:00
Add length check here as well, thanks Ensiform
This commit is contained in:
parent
311acbe263
commit
6b811ada7a
1 changed files with 4 additions and 0 deletions
|
@ -570,6 +570,10 @@ static void SVC_Status( netadr_t from ) {
|
|||
return;
|
||||
}
|
||||
|
||||
// A maximum challenge length of 128 should be more than plenty.
|
||||
if(strlen(Cmd_Argv(1)) > 128)
|
||||
return;
|
||||
|
||||
strcpy( infostring, Cvar_InfoString( CVAR_SERVERINFO ) );
|
||||
|
||||
// echo back the parameter to status. so master servers can use it as a challenge
|
||||
|
|
Loading…
Reference in a new issue