Netcode: handle NULL in addrinfo lookup

This commit is contained in:
Alam Ed Arias 2018-12-22 21:06:13 -05:00
parent 0ed9665a79
commit 7285f9ff1d
1 changed files with 1 additions and 1 deletions

View File

@ -1310,7 +1310,7 @@ void I_ShutdownTcpDriver(void)
static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
{
SINT8 newnode = -1;
struct my_addrinfo *ai, *runp, hints;
struct my_addrinfo *ai = NULL, *runp, hints;
int gaie;
if (!port || !port[0])