aboutsummaryrefslogtreecommitdiff
path: root/contrib/telnet
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/telnet')
-rw-r--r--contrib/telnet/telnetd/telnetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c
index 2d31903a12a4..18b0a482a9e6 100644
--- a/contrib/telnet/telnetd/telnetd.c
+++ b/contrib/telnet/telnetd/telnetd.c
@@ -925,7 +925,7 @@ telnet(int f, int p, char *host)
edithost(HE, host_name);
if (hostinfo && *IM)
putf(IM, ptyibuf2);
- if (IF && if_fd != -1) {
+ if (if_fd != -1) {
if (fstat(if_fd, &statbuf) != -1 && statbuf.st_size > 0) {
if_buf = (char *) mmap (0, statbuf.st_size,
PROT_READ, 0, if_fd, 0);