mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +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];
|
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)
|
if (keepaddr == 0)
|
||||||
{
|
{
|
||||||
for (i=0;i<rancid_players;i++)
|
for (i=0;i<rancid_players;i++)
|
||||||
|
|
Loading…
Reference in a new issue