mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
telnetd(8): Fix dereference of uninitialized value 'IF'
Reported by: Coverity Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
1ad2da031e
commit
2c710c67d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331074
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue