pkgsrc/net/jwhois/patches/patch-src_utils.c
shattered 2d8b4560a3 Fix connection failures to WHOIS servers with IPv6 addresses from hosts
without IPv6 connectivity.  Patch taken from Debian bug report 542148.

Also delint.
2012-10-23 20:49:38 +00:00

13 lines
397 B
C

$NetBSD: patch-src_utils.c,v 1.1 2012/10/23 20:49:38 shattered Exp $
--- src/utils.c.orig 2007-06-26 07:00:20.000000000 +0000
+++ src/utils.c
@@ -288,7 +288,7 @@ make_connect(const char *host, int port)
retlen = sizeof(retval);
error = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &retval, &retlen);
- if (error < 0 || retval)
+ if (error < 0 || !retval)
{
break;
}