curl-library
Re: hostthre.c patch
From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 26 Apr 2004 17:09:31 +0200
Date: Mon, 26 Apr 2004 17:09:31 +0200
> Damn, that should be:
> + if (s == CURL_SOCKET_BAD) {
And:
--- CVS-latest/lib/hostip6.c Mon Apr 26 16:03:25 2004
+++ lib/hostip6.c Mon Apr 26 16:57:49 2004
@@ -204,7 +204,7 @@
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);
--gv
Received on 2004-04-26