Date: Mon, 13 Mar 2017 17:53:46 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315204 - head/sys/netpfil/ipfw/nat64 Message-ID: <201703131753.v2DHrkab071516@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Mon Mar 13 17:53:46 2017 New Revision: 315204 URL: https://svnweb.freebsd.org/changeset/base/315204 Log: nat64lsn: Use memset() with structure, not pointer, size PR: 217738 Submitted by: Svyatoslav <razmyslov at viva64.com> Sponsored by: Viva64 (PVS-Studio) Modified: head/sys/netpfil/ipfw/nat64/nat64lsn.c Modified: head/sys/netpfil/ipfw/nat64/nat64lsn.c ============================================================================== --- head/sys/netpfil/ipfw/nat64/nat64lsn.c Mon Mar 13 17:45:00 2017 (r315203) +++ head/sys/netpfil/ipfw/nat64/nat64lsn.c Mon Mar 13 17:53:46 2017 (r315204) @@ -215,7 +215,7 @@ nat64lsn_log(struct pfloghdr *plog, stru uint32_t n, uint32_t sn) { - memset(plog, 0, sizeof(plog)); + memset(plog, 0, sizeof(*plog)); plog->length = PFLOG_REAL_HDRLEN; plog->af = family; plog->action = PF_NAT;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703131753.v2DHrkab071516>