Fix ban.txt crash #13

Merged
Indev450 merged 1 commits from fix-ban-txt-crash into Saturn 2023-08-09 13:40:37 +02:00
+6
View File
@@ -2909,6 +2909,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)