mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 12:40:40 +00:00
Netcode: handle NULL in addrinfo lookup
This commit is contained in:
parent
0ed9665a79
commit
7285f9ff1d
1 changed files with 1 additions and 1 deletions
|
@ -1310,7 +1310,7 @@ void I_ShutdownTcpDriver(void)
|
||||||
static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
|
static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
|
||||||
{
|
{
|
||||||
SINT8 newnode = -1;
|
SINT8 newnode = -1;
|
||||||
struct my_addrinfo *ai, *runp, hints;
|
struct my_addrinfo *ai = NULL, *runp, hints;
|
||||||
int gaie;
|
int gaie;
|
||||||
|
|
||||||
if (!port || !port[0])
|
if (!port || !port[0])
|
||||||
|
|
Loading…
Reference in a new issue