summaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-26 14:03:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-26 14:03:25 +0000
commitf5042cce34d0680ddfb8132d8d36521f10e5e3fe (patch)
tree37a4c173aef797ed4ef2e176eb0f0c8295077e89 /lib/hostip6.c
parent712c67b4ae15feab0096afd12ccbbaa7cc8cd1b6 (diff)
downloadcurl-f5042cce34d0680ddfb8132d8d36521f10e5e3fe.tar.gz
IDN adjustments and host cleanups by Gisle
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r--lib/hostip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index 61b140b14..8ddcd84b1 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 < 0)
+ if (s != CURL_SOCKET_BAD)
/* an ipv6 address was requested and we can't get/use one */
return FALSE;
sclose(s);