Date: Thu, 22 Jun 2017 07:14:37 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r320224 - stable/10/usr.sbin/syslogd Message-ID: <201706220714.v5M7EbQb084863@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706220714.v5M7EbQb084863>