From 7285f9ff1d9b5d4f1230c3690fab1daf4d38dfaa Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sat, 22 Dec 2018 21:06:13 -0500 Subject: [PATCH] Netcode: handle NULL in addrinfo lookup --- src/i_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i_tcp.c b/src/i_tcp.c index 739355cc..f8a65b75 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -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])