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
Branches
No related tags found
No related merge requests found
......@@ -1148,7 +1148,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
DEBFILE(va("Creating new node: %s@%s\n", address, port));
memset (&hints, 0x00, sizeof (hints));
hints.ai_flags = 0;
hints.ai_flags = AI_ADDRCONFIG;
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_UDP;
......@@ -1178,7 +1178,7 @@ static SINT8 SOCK_NetMakeNodewPort(const char *address, const char *port)
}
}
if (i < mysocketses)
if (i >= mysocketses)
runp = runp->ai_next;
else
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment