mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-04 23:41:07 +00:00
Fix ban.txt crashing game
This commit is contained in:
parent
20a5adde02
commit
f9880e8413
1 changed files with 6 additions and 0 deletions
|
@ -2905,6 +2905,12 @@ void D_LoadBan(boolean warning)
|
||||||
address = strtok(buffer, " /\t\r\n");
|
address = strtok(buffer, " /\t\r\n");
|
||||||
mask = strtok(NULL, " \t\r\n");
|
mask = strtok(NULL, " \t\r\n");
|
||||||
|
|
||||||
|
if (!address)
|
||||||
|
{
|
||||||
|
malformed = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (i == 0 && !strncmp(address, "BANFORMAT", 9))
|
if (i == 0 && !strncmp(address, "BANFORMAT", 9))
|
||||||
{
|
{
|
||||||
if (mask)
|
if (mask)
|
||||||
|
|
Loading…
Reference in a new issue