Blame SOURCES/telnet-rh704604.patch

e4a049
--- netkit-telnet-0.17/telnet/commands.c.hostalias	2011-07-11 08:07:22.000000000 -0400
e4a049
+++ netkit-telnet-0.17/telnet/commands.c	2011-07-11 08:10:12.131039660 -0400
e4a049
@@ -2400,17 +2400,21 @@ 
e4a049
 	    ahints.ai_family = PF_UNSPEC;
e4a049
 	    ahints.ai_socktype = SOCK_STREAM;
e4a049
 	    ahints.ai_flags = AI_PASSIVE;
e4a049
 	    error = getaddrinfo(aliasp, "0", &ahints, &ares);
e4a049
 	    if (error) {
e4a049
+	        printf ("Couldn't get address for %s\n", aliasp);
e4a049
 	        warn("%s: %s", aliasp, gai_strerror(error));
e4a049
 	        close(net);
e4a049
+		net = -1;
e4a049
 	        continue;
e4a049
 	    }
e4a049
 	    if (bind(net, ares->ai_addr, ares->ai_addrlen) < 0) {
e4a049
+	        printf ("Couldn't bind to %s\n", aliasp);
e4a049
 	        perror(aliasp);
e4a049
                 (void) close(net);   /* dump descriptor */
e4a049
+		net = -1;
e4a049
 		freeaddrinfo(ares);
e4a049
 		continue;
e4a049
             }
e4a049
 	    freeaddrinfo(ares);
e4a049
         }