Author: ngie
Date: Thu Jun 22 07:14:37 2017
New Revision: 320224
URL: https://svnweb.freebsd.org/changeset/base/320224

Log:
  MFC r309194,r309216:
  
  r309194 (by bapt):
  
  initialize *nextp which could be left uninitialized in case the configuration
  file cannot be open/read
  
  CID:          1365665
  
  r309216 (by bapt):
  
  Properly initialize nextp

Modified:
  stable/10/usr.sbin/syslogd/syslogd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/syslogd/syslogd.c
==============================================================================
--- stable/10/usr.sbin/syslogd/syslogd.c        Thu Jun 22 07:10:01 2017        
(r320223)
+++ stable/10/usr.sbin/syslogd/syslogd.c        Thu Jun 22 07:14:37 2017        
(r320224)
@@ -1764,6 +1764,7 @@ init(int signo)
                free((char *)f);
        }
        Files = NULL;
+       nextp = &Files;
 
        /* open the configuration file */
        if ((cf = fopen(ConfFile, "r")) == NULL) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to