diff options
-rw-r--r-- | src/server/sv_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c index bee0ec19..100e97ce 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -582,6 +582,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 |