aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-26 15:11:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-26 15:11:56 +0000
commit92179ff99027e45afc9a14937489b62039ed240a (patch)
treee32c486f69e79698c8c954d009ee51d0895d9fe3
parent4aac210a83f28db45686647b90e31e1385b25e48 (diff)
corrected mistake
-rw-r--r--lib/hostip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index 8ddcd84b1..8b3f61146 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.c
@@ -204,7 +204,7 @@ bool Curl_ipvalid(struct SessionHandle *data)
if(data->set.ip_version == CURL_IPRESOLVE_V6) {
/* see if we have an IPv6 stack */
curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0);
- if (s != CURL_SOCKET_BAD)
+ if (s == CURL_SOCKET_BAD)
/* an ipv6 address was requested and we can't get/use one */
return FALSE;
sclose(s);