mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 06:52:45 +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:
parent
b40cdde64c
commit
c36be85f01
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202214
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user