diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-10-28 19:52:05 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-10-28 19:52:05 +0000 |
commit | 7e54ab74cdffd5373c7b8e48a4c5a03282790972 (patch) | |
tree | 2e3e85a5e09f73beda0d0a302414086437d86ce9 /usr.bin | |
parent | 3ee87076fbe5374b345fcb06b435de8b8a5bdfec (diff) |
remove bogus error-check, resolve pr#2147
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nc/netcat.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index 92657df077a..0652c4c0b7e 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.38 2001/10/28 19:48:33 jakob Exp $ */ +/* $OpenBSD: netcat.c,v 1.39 2001/10/28 19:52:04 jakob Exp $ */ /* * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> * @@ -361,9 +361,6 @@ remote_connect(char *host, char *port, struct addrinfo hints) if (connect(s, res0->ai_addr, res0->ai_addrlen) == 0) break; - if (error == 0) - break; - close(s); s = -1; } while ((res0 = res0->ai_next) != NULL); |