[2379] in Kerberos-V5-bugs
Re: telnet/113: telnet should provide the IP address connected to
daemon@ATHENA.MIT.EDU (John Hawkinson)
Tue Oct 29 23:14:48 1996
Date: Tue, 29 Oct 1996 23:14:41 -0500
To: krb5-bugs@MIT.EDU
Cc: krb5-prs@RT-11.MIT.EDU
From: John Hawkinson <jhawk@bbnplanet.com>
My earlier patch missed the case where
connect() fails and telnet moves on to a new IP address -- in that
case hostaddr does not get (re-)set so it indicates the IP address
first attempted.
Here's an addition to my previous patch.
*** commands.c 1996/10/16 00:01:59 1.3
--- commands.c 1996/10/30 04:12:43 1.4
***************
*** 2427,2432 ****
--- 2427,2434 ----
host->h_addr_list++;
memcpy((caddr_t)&sin.sin_addr,
host->h_addr_list[0], host->h_length);
+ memcpy((caddr_t)&hostaddr,
+ host->h_addr_list[0], host->h_length);
(void) NetClose(net);
continue;
}
--jhawk