svn commit: r320224 - stable/10/usr.sbin/syslogd

Ngie Cooper ngie at FreeBSD.org
Thu Jun 22 07:14:40 UTC 2017


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) {


More information about the svn-src-all mailing list