Date: Tue, 21 Oct 2008 11:58:26 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/crypto/openssh loginrec.c sshd.c Message-ID: <200810211158.m9LBwdXs087672@repoman.freebsd.org>
index | next in thread | raw e-mail
des 2008-10-21 11:58:26 UTC
FreeBSD src repository
Modified files:
crypto/openssh loginrec.c sshd.c
Log:
SVN rev 184122 on 2008-10-21 11:58:26Z by des
At some point, construct_utmp() was changed to use realhostname() to fill
in the struct utmp due to concerns about the length of the hostname buffer.
However, this breaks the UseDNS option. There is a simpler and better
solution: initialize utmp_len to the correct value (UT_HOSTSIZE instead of
MAXHOSTNAMELEN) and let get_remote_name_or_ip() worry about the size of the
buffer.
PR: bin/97499
Submitted by: Bruce Cran <bruce@cran.org.uk>
MFC after: 1 week
Revision Changes Path
1.16 +2 -3 src/crypto/openssh/loginrec.c
1.47 +2 -1 src/crypto/openssh/sshd.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810211158.m9LBwdXs087672>
