Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: a telnet bug and patch
@ 1996-03-25  1:24 David Mosberger-Tang
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger-Tang @ 1996-03-25  1:24 UTC (permalink / raw)


>>>>> On Sun, 24 Mar 1996 17:10:49 -0600 (CST), richard@atheist.tamu.edu (Richard Henderson) said:

  Richard> The telnet from NetKit-B-0.06-7 has a 64-bit unsigned long
  Richard> problem resolving hostnames.  I suppose, depending on how
  Richard> you define the semantics of inet_addr failure, the problem
  Richard> could be in libc, but....

I'm not sure either.  GNU libc also returns INADDR_NONE (0xffffffff)
but the intent may well have been to return (unsigned long)-1L.  I'm
checking with the GNU libc folks whether there is a standard defining
this.

	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread
* a telnet bug and patch
@ 1996-03-24 23:10 Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1996-03-24 23:10 UTC (permalink / raw)


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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-03-25  1:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-25  1:24 a telnet bug and patch David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1996-03-24 23:10 Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox