diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/jwhois/files/jwhois-4.0-connect-logic.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/jwhois/files/jwhois-4.0-connect-logic.patch')
-rw-r--r-- | net-misc/jwhois/files/jwhois-4.0-connect-logic.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch b/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch new file mode 100644 index 000000000000..e0b10f6b50b9 --- /dev/null +++ b/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch @@ -0,0 +1,15 @@ +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; + } |