mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
boundscheck the client entity
This commit is contained in:
parent
9fbbadb788
commit
a10704f99d
1 changed files with 1 additions and 1 deletions
|
@ -1745,7 +1745,7 @@ PF_SV_FreeClient (progs_t *pr)
|
|||
int entnum = P_EDICTNUM (pr, 0);
|
||||
client_t *cl = svs.clients + entnum - 1;
|
||||
|
||||
if (cl->state != cs_server)
|
||||
if (entnum < 1 || entnum > MAX_CLIENTS || cl->state != cs_server)
|
||||
PR_RunError (pr, "not a server client");
|
||||
if (cl->userinfo)
|
||||
Info_Destroy (cl->userinfo);
|
||||
|
|
Loading…
Reference in a new issue