You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch

16 lines
425 B

https://bugs.gentoo.org/208875
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542148
https://savannah.gnu.org/bugs/index.php?37135
--- a/src/utils.c
+++ b/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;
}