mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Merge branch 'fix-ban-txt-crash' into 'master'
Fix ban.txt crashing game See merge request KartKrew/Kart-Public!329
This commit is contained in:
commit
684b016487
1 changed files with 6 additions and 0 deletions
|
@ -2905,6 +2905,12 @@ void D_LoadBan(boolean warning)
|
|||
address = strtok(buffer, " /\t\r\n");
|
||||
mask = strtok(NULL, " \t\r\n");
|
||||
|
||||
if (!address)
|
||||
{
|
||||
malformed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (i == 0 && !strncmp(address, "BANFORMAT", 9))
|
||||
{
|
||||
if (mask)
|
||||
|
|
Loading…
Reference in a new issue