Skip to content
Snippets Groups Projects
Commit 7285f9ff authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

Netcode: handle NULL in addrinfo lookup

parent 0ed9665a
Branches
Tags
No related merge requests found
...@@ -1310,7 +1310,7 @@ void I_ShutdownTcpDriver(void) ...@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment