Skip to content
Snippets Groups Projects
Commit 53fabd11 authored by Logan Aerl Arias's avatar Logan Aerl Arias
Browse files

Merge branch 'fix-address-resolution-failure' into 'master'

Fix address resolution failure in certain circumstances

See merge request STJr/SRB2!2617
parents e7c18ba1 8cbcbf8c
No related branches found
No related tags found
1 merge request!2617Fix address resolution failure in certain circumstances
Pipeline #7265 passed
...@@ -1148,7 +1148,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port) ...@@ -1148,7 +1148,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
DEBFILE(va("Creating new node: %s@%s\n", address, port)); DEBFILE(va("Creating new node: %s@%s\n", address, port));
memset (&hints, 0x00, sizeof (hints)); memset (&hints, 0x00, sizeof (hints));
hints.ai_flags = 0; hints.ai_flags = AI_ADDRCONFIG;
hints.ai_family = AF_UNSPEC; hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM; hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_UDP; hints.ai_protocol = IPPROTO_UDP;
...@@ -1178,7 +1178,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port) ...@@ -1178,7 +1178,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
} }
} }
if (i < mysocketses) if (i >= mysocketses)
runp = runp->ai_next; runp = runp->ai_next;
else else
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment