sshd doesn't log hostname into utmp correctly [resend]

Kevin Steves kevin at atomicgears.com
Tue Aug 20 07:19:02 EST 2002


On Tue, Aug 20, 2002 at 03:06:50AM +0900, Hajimu UMEMOTO wrote:
> Though I sent this message before, I didn't get any response.  So, I
> send this message, again.
> This problem is occur when the connection is form IPv6, and IPv4 is
> not affected.
> 
> openssh-3.4p1 doesn't handle actual size of struct sockaddr correctly,
> and does copy it as long as just size of struct sockaddr.  So, sshd
> deesn't log hostname into utmp correctly.  Here is a patch to fix this
> problem.

thanks.  which utmp field is effected?  in loginrec.c i see ut_addr
being set from sockaddr, but for AF_INET only.  and ut_host is set
from the login_alloc_entry() hostname argument it seems.



More information about the openssh-unix-dev mailing list