From: Daniel Stenberg Date: Mon, 26 Apr 2004 15:11:56 +0000 (+0000) Subject: corrected mistake X-Git-Tag: curl-7_12_0~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92179ff99027e45afc9a14937489b62039ed240a;p=thirdparty%2Fcurl.git corrected mistake --- diff --git a/lib/hostip6.c b/lib/hostip6.c index 8ddcd84b1a..8b3f611466 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);