diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 14:18:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 14:18:42 +0000 |
commit | 4aac210a83f28db45686647b90e31e1385b25e48 (patch) | |
tree | 1cc7660c6ef2431acbece31348d29302aad0e6b1 | |
parent | 245e3122df4ec12fee41552a909be75714a268a2 (diff) |
Gisle fixed a mistaken check
-rw-r--r-- | lib/hostthre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c index 6a35244ee..6f2182e03 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -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. */ |