From 2c710c67d421059ca2f089fda820bc2aed25d168 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Fri, 16 Mar 2018 20:59:56 +0000 Subject: [PATCH] telnetd(8): Fix dereference of uninitialized value 'IF' Reported by: Coverity Sponsored by: Dell EMC Isilon --- contrib/telnet/telnetd/telnetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c index 2d31903a12a..18b0a482a9e 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);