summaryrefslogtreecommitdiff
path: root/usr.bin/nc
diff options
context:
space:
mode:
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);
}