IOQ3 commit 2369

This commit is contained in:
Richard Allen 2012-12-12 20:05:19 +00:00
parent 121659f2c5
commit e74fbb55b8

View file

@ -570,6 +570,10 @@ static void SVC_Status( netadr_t from ) {
return; 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 ) ); strcpy( infostring, Cvar_InfoString( CVAR_SERVERINFO ) );
// echo back the parameter to status. so master servers can use it as a challenge // echo back the parameter to status. so master servers can use it as a challenge