blob: e0b10f6b50b95330f925961e2e5f10c4634095b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
|