From 582905f04fbe08b19c7829b1c83f1b32033292dd 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 739355ccf..f8a65b754 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])