svn commit: r351433 - stable/11/contrib/telnet/telnetd
Ed Maste
emaste at FreeBSD.org
Fri Aug 23 17:43:42 UTC 2019
Author: emaste
Date: Fri Aug 23 17:43:41 2019
New Revision: 351433
URL: https://svnweb.freebsd.org/changeset/base/351433
Log:
MFC r331074 (cem): telnetd(8): Fix dereference of uninitialized value 'IF'
Reported by: Coverity
Modified:
stable/11/contrib/telnet/telnetd/telnetd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/contrib/telnet/telnetd/telnetd.c
==============================================================================
--- stable/11/contrib/telnet/telnetd/telnetd.c Fri Aug 23 17:40:47 2019 (r351432)
+++ stable/11/contrib/telnet/telnetd/telnetd.c Fri Aug 23 17:43:41 2019 (r351433)
@@ -921,7 +921,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);
More information about the svn-src-stable-11
mailing list