Loophole closed that could have been used to crash the engine.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@385 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-10-28 21:13:52 +00:00
parent 10ad1bbade
commit cd9c6d7811

View file

@ -314,6 +314,13 @@ void SVQ2_ConfigStrings_f (void)
start = atoi(Cmd_Argv(2));
if (start < 0)
{
Con_Printf ("SV_Configstrings_f: %s tried crashing us\n", host_client->name);
host_client->drop = true;
return;
}
// write a packet full of data
while ( host_client->netchan.message.cursize < MAX_QWMSGLEN/2
@ -3975,6 +3982,7 @@ haveannothergo:
SV_RunCmd (&newcmd, false);
SV_PostRunCmd();
}
cl->lastcmd = newcmd;