From b3741997b0c88e929345ba5f39a90f0c1ea01121 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 13 Jan 2010 18:46:50 +0000 Subject: [PATCH] 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. git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@202214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- telnetd/telnetd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/telnetd/telnetd.c b/telnetd/telnetd.c index 7833a6b..938f853 100644 --- a/telnetd/telnetd.c +++ b/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,