From 1da5a507eebff4c5e5ceaeb3e2c5bb02247b2abd Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 25 Jul 2003 21:35:17 +0000 Subject: Kill dead code after errx(). From Andrey Matveev; ericj@ OK --- usr.bin/nc/netcat.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'usr.bin/nc') 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 * @@ -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); } -- cgit v1.2.3