I guess these checks are necessary, because if we don't have them, rmnet segfaults when it tries to strtok things that don't exist.

git-svn-id: https://svn.eduke32.com/eduke32@373 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-12-01 01:20:59 +00:00
parent f71b2cd2d9
commit e35a1bdc33

View file

@ -8314,6 +8314,16 @@ void setup_rancid_net(char *fn)
{
char tmp[32];
if (!Bstrlen(rancid_ip_strings[MAXPLAYERS-1])||!Bstrlen(rancid_ip_strings[1]))
{
if (!Bstrlen(rancid_ip_strings[MAXPLAYERS-1]))
initprintf("rmnet: Interface not defined\n");
if (!Bstrlen(rancid_ip_strings[1]))
initprintf("rmnet: No peers configured\n");
gameexit("Malformed network configuration file!");
return;
}
if (keepaddr == 0)
{
for (i=0;i<rancid_players;i++)