svn commit: r333356 - stable/11/usr.sbin/syslogd
Xin LI
delphij at FreeBSD.org
Tue May 8 05:10:07 UTC 2018
Author: delphij
Date: Tue May 8 05:10:06 2018
New Revision: 333356
URL: https://svnweb.freebsd.org/changeset/base/333356
Log:
MFC r332877: Correct size for allocation and bzero of fdsr.
Approved by: re (gjb)
Modified:
stable/11/usr.sbin/syslogd/syslogd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/syslogd/syslogd.c
==============================================================================
--- stable/11/usr.sbin/syslogd/syslogd.c Tue May 8 04:54:36 2018 (r333355)
+++ stable/11/usr.sbin/syslogd/syslogd.c Tue May 8 05:10:06 2018 (r333356)
@@ -675,7 +675,7 @@ main(int argc, char *argv[])
fdsrmax = fx->s;
fdsr = (fd_set *)calloc(howmany(fdsrmax+1, NFDBITS),
- sizeof(fd_mask));
+ sizeof(*fdsr));
if (fdsr == NULL)
errx(1, "calloc fd_set");
@@ -686,7 +686,7 @@ main(int argc, char *argv[])
die(WantDie);
bzero(fdsr, howmany(fdsrmax+1, NFDBITS) *
- sizeof(fd_mask));
+ sizeof(*fdsr));
if (fklog != -1)
FD_SET(fklog, fdsr);
More information about the svn-src-stable
mailing list