mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 20:52:54 +00:00
Fix max bans range check in SV_AddBanToList
Adding too many bans would write out of bounds. Found by Coverity.
This commit is contained in:
parent
eea9fbdb61
commit
7a4ef47476
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,7 @@ static void SV_AddBanToList(qboolean isexception)
|
|||
return;
|
||||
}
|
||||
|
||||
if(serverBansCount > ARRAY_LEN(serverBans))
|
||||
if(serverBansCount >= ARRAY_LEN(serverBans))
|
||||
{
|
||||
Com_Printf ("Error: Maximum number of bans/exceptions exceeded.\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue