1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

Forgot a part that was missing in the previous commit.

There is no need to call trimdomain() anymore now that ut_host is big
enough to fit decent hostnames.
This commit is contained in:
Ed Schouten 2010-01-13 18:46:50 +00:00
parent b40cdde64c
commit c36be85f01
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202214

View File

@ -692,7 +692,6 @@ doit(struct sockaddr *who)
Please contact your net administrator");
remote_hostname[sizeof(remote_hostname) - 1] = '\0';
trimdomain(remote_hostname, UT_HOSTSIZE);
if (!isdigit(remote_hostname[0]) && strlen(remote_hostname) > utmp_len)
err_ = getnameinfo(who, who->sa_len, remote_hostname,
sizeof(remote_hostname), NULL, 0,