summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-13 18:46:50 +0000
committered <ed@FreeBSD.org>2010-01-13 18:46:50 +0000
commit55b15dac03499c76fbd5fe0a6b03c5c19cb02165 (patch)
tree8e34a819847053a3af0724bfd5886a8c789625c4 /contrib
parent495b1a6bbd3ae0cee3bc1959edb0d6f01ddd3227 (diff)
downloadFreeBSD-src-55b15dac03499c76fbd5fe0a6b03c5c19cb02165.zip
FreeBSD-src-55b15dac03499c76fbd5fe0a6b03c5c19cb02165.tar.gz
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.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/telnet/telnetd/telnetd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c
index 7833a6b..938f853 100644
--- a/contrib/telnet/telnetd/telnetd.c
+++ b/contrib/telnet/telnetd/telnetd.c
@@ -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,
OpenPOWER on IntegriCloud