Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2016 15:50:00 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309194 - head/usr.sbin/syslogd
Message-ID:  <201611261550.uAQFo0HC074016@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Nov 26 15:49:59 2016
New Revision: 309194
URL: https://svnweb.freebsd.org/changeset/base/309194

Log:
  initialize *nextp which could be left uninitialized in case the configuration
  file cannot be open/read
  
  Reported by:	Coverity via cem
  MFC after:	2 days
  CID:		1365665

Modified:
  head/usr.sbin/syslogd/syslogd.c

Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c	Sat Nov 26 15:01:35 2016	(r309193)
+++ head/usr.sbin/syslogd/syslogd.c	Sat Nov 26 15:49:59 2016	(r309194)
@@ -1835,6 +1835,7 @@ init(int signo)
 		free((char *)f);
 	}
 	Files = NULL;
+	*nextp = NULL;
 
 	/* open the configuration file */
 	if ((cf = fopen(ConfFile, "r")) == NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611261550.uAQFo0HC074016>