Fixed a warning.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3133 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b763b5594d
commit
c50ea9c54a
1 changed files with 7 additions and 0 deletions
|
@ -721,7 +721,10 @@ qboolean NET_StringToAdr (char *s, netadr_t *a)
|
||||||
//make sure that the rest of the address is a valid ip address (4 or 6)
|
//make sure that the rest of the address is a valid ip address (4 or 6)
|
||||||
|
|
||||||
if (!NET_StringToSockaddr (s+6, &sadr))
|
if (!NET_StringToSockaddr (s+6, &sadr))
|
||||||
|
{
|
||||||
|
a->type = NA_INVALID;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
SockadrToNetadr (&sadr, a);
|
SockadrToNetadr (&sadr, a);
|
||||||
|
|
||||||
|
@ -771,7 +774,10 @@ qboolean NET_StringToAdr (char *s, netadr_t *a)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!NET_StringToSockaddr (s, &sadr))
|
if (!NET_StringToSockaddr (s, &sadr))
|
||||||
|
{
|
||||||
|
a->type = NA_INVALID;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
SockadrToNetadr (&sadr, a);
|
SockadrToNetadr (&sadr, a);
|
||||||
|
|
||||||
|
@ -1648,6 +1654,7 @@ qboolean NET_PortToAdr (int adrfamily, char *s, netadr_t *a)
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
a->type = NA_INVALID;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue