mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
f71b2cd2d9
commit
e35a1bdc33
1 changed files with 10 additions and 0 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue