diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-01-13 18:46:50 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-13 18:46:50 +0000 |
commit | c36be85f018250f0857187741eb7bd7255a0756d (patch) | |
tree | 8e34a819847053a3af0724bfd5886a8c789625c4 /contrib/telnet | |
parent | b40cdde64c081f2ed94344c75a40e9927270ead2 (diff) | |
download | src-c36be85f018250f0857187741eb7bd7255a0756d.tar.gz src-c36be85f018250f0857187741eb7bd7255a0756d.zip |
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.
Notes
Notes:
svn path=/head/; revision=202214
Diffstat (limited to 'contrib/telnet')
-rw-r--r-- | contrib/telnet/telnetd/telnetd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c index 7833a6b82621..938f8533b216 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, |