summaryrefslogtreecommitdiff
path: root/usr.bin/nc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-07-25 21:35:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-07-25 21:35:17 +0000
commit1da5a507eebff4c5e5ceaeb3e2c5bb02247b2abd (patch)
tree166a87785961506cdaab5652c3ed5f6c75a0103a /usr.bin/nc
parent81c6e2e53009d99cd35f42331f7608e2382e068e (diff)
Kill dead code after errx(). From Andrey Matveev; ericj@ OK
Diffstat (limited to 'usr.bin/nc')
-rw-r--r--usr.bin/nc/netcat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index 41de61fb339..06871179c04 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.61 2003/07/07 21:36:23 deraadt Exp $ */
+/* $OpenBSD: netcat.c,v 1.62 2003/07/25 21:35:16 millert Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
*
@@ -467,11 +467,8 @@ remote_connect(char *host, char *port, struct addrinfo hints)
errx(1, "getaddrinfo: %s", gai_strerror(error));
if (bind(s, (struct sockaddr *)ares->ai_addr,
- ares->ai_addrlen) < 0) {
+ ares->ai_addrlen) < 0)
errx(1, "bind failed: %s", strerror(errno));
- freeaddrinfo(ares);
- continue;
- }
freeaddrinfo(ares);
}