Skip to content
Snippets Groups Projects
Commit 4aac210a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Gisle fixed a mistaken check

parent 245e3122
No related branches found
No related tags found
No related merge requests found
......@@ -498,7 +498,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
/* see if we have an IPv6 stack */
s = socket(PF_INET6, SOCK_DGRAM, 0);
if (s != CURL_SOCKET_BAD) {
if (s == CURL_SOCKET_BAD) {
/* Some non-IPv6 stacks have been found to make very slow name resolves
* when PF_UNSPEC is used, so thus we switch to a mere PF_INET lookup if
* the stack seems to be a non-ipv6 one. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment