aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2000-02-28 18:51:30 +0000
committerBrian Somers <brian@FreeBSD.org>2000-02-28 18:51:30 +0000
commitccd16b43ed5d0fe64aba91ad19201b9349725e07 (patch)
tree26ecd2453207b3f156c1081609228b7292cb8916 /crypto
parent62585e33b090fe02dc2164c03f4ce44c66f284b2 (diff)
Notes
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/login.c b/crypto/openssh/login.c
index 55480de881d3..6bfba255149a 100644
--- a/crypto/openssh/login.c
+++ b/crypto/openssh/login.c
@@ -87,7 +87,7 @@ record_login(int pid, const char *ttyname, const char *user, uid_t uid,
strncpy(u.ut_line, ttyname + 5, sizeof(u.ut_line));
u.ut_time = time(NULL);
strncpy(u.ut_name, user, sizeof(u.ut_name));
- strncpy(u.ut_host, host, sizeof(u.ut_host));
+ realhostname_sa(u.ut_host, sizeof(u.ut_host), addr, addr->sa_len);
/* Figure out the file names. */
utmp = _PATH_UTMP;