From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sun, 24 Mar 1996 17:10:49 -0600 (CST) From: Richard Henderson Subject: a telnet bug and patch The telnet from NetKit-B-0.06-7 has a 64-bit unsigned long problem resolving hostnames. I suppose, depending on how you define the semantics of inet_addr failure, the problem could be in libc, but.... r~ ----- *** NetKit-B-0.06/telnet/commands.c.orig Mon May 23 04:11:50 1994 --- NetKit-B-0.06/telnet/commands.c Sun Mar 24 16:54:51 1996 *************** *** 2219,2225 **** } else { #endif temp = inet_addr(hostp); ! if (temp != (unsigned long) -1) { sin.sin_addr.s_addr = temp; sin.sin_family = AF_INET; (void) strcpy(_hostname, hostp); --- 2219,2225 ---- } else { #endif temp = inet_addr(hostp); ! if (temp != 0xFFFFFFFF) { sin.sin_addr.s_addr = temp; sin.sin_family = AF_INET; (void) strcpy(_hostname, hostp);