/[gentoo-x86]/net-misc/jwhois/files/jwhois-4.0-connect-logic.patch
Gentoo

Contents of /net-misc/jwhois/files/jwhois-4.0-connect-logic.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Aug 18 05:24:08 2012 UTC (9 months ago) by vapier
Branch: MAIN
Fix network connect bug (as seen with .tel domains) #276751 by DEMAINE BenoƮt-Pierre, aka DoubleHP.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 vapier 1.1 https://bugs.gentoo.org/276751
2     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542148
3     https://savannah.gnu.org/bugs/index.php?37135
4    
5     --- a/src/utils.c
6     +++ b/src/utils.c
7     @@ -288,7 +288,7 @@ make_connect(const char *host, int port)
8    
9     retlen = sizeof(retval);
10     error = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &retval, &retlen);
11     - if (error < 0 || retval)
12     + if (error == 0 && !retval)
13     {
14     break;
15     }

  ViewVC Help
Powered by ViewVC 1.1.13