diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 04:45:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 04:45:02 +0000 |
commit | 3b9d70b08e7309ff294e20e2d2be617a9a182bc6 (patch) | |
tree | 1374fa4f8d04d48c871bea91fda1fd6d1d0793d5 | |
parent | 49448ef5dfc5e4c098c845d3595c8b3bff6ecc1d (diff) | |
download | fetchmail-3b9d70b08e7309ff294e20e2d2be617a9a182bc6.tar.gz fetchmail-3b9d70b08e7309ff294e20e2d2be617a9a182bc6.tar.bz2 fetchmail-3b9d70b08e7309ff294e20e2d2be617a9a182bc6.zip |
Fix seems to be unnecssary. Weird.
svn path=/trunk/; revision=470
-rw-r--r-- | socket.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -52,10 +52,7 @@ int clientPort; if (sock < 0) return (FILE *)NULL; - /* under 2.0.23, connect(2) doesn't return -1 on ENETUNREACH failure */ - errno = 0; - connect(sock, (struct sockaddr *) &ad, sizeof(ad)); - if (errno != 0) + if (connect(sock, (struct sockaddr *) &ad, sizeof(ad)) < 0) { close(sock); return (FILE *)NULL; |