cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: hostthre.c patch

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 26 Apr 2004 16:17:20 +0200

> @@ -499,7 +499,7 @@
>
> /* see if we have an IPv6 stack */
> s = socket(PF_INET6, SOCK_DGRAM, 0);
> - if (s < 0) {
> + if (s != CURL_SOCKET_BAD) {

Damn, that should be:
+ if (s == CURL_SOCKET_BAD) {

--gv
Received on 2004-04-26