Date: Tue, 14 Mar 2017 07:57:33 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315233 - head/sys/netpfil/ipfw/nat64 Message-ID: <201703140757.v2E7vXb7016648@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Tue Mar 14 07:57:33 2017 New Revision: 315233 URL: https://svnweb.freebsd.org/changeset/base/315233 Log: Use memset with structure size. Modified: head/sys/netpfil/ipfw/nat64/nat64stl.c Modified: head/sys/netpfil/ipfw/nat64/nat64stl.c ============================================================================== --- head/sys/netpfil/ipfw/nat64/nat64stl.c Tue Mar 14 07:09:51 2017 (r315232) +++ head/sys/netpfil/ipfw/nat64/nat64stl.c Tue Mar 14 07:57:33 2017 (r315233) @@ -69,7 +69,7 @@ nat64stl_log(struct pfloghdr *plog, stru { static uint32_t pktid = 0; - 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?201703140757.v2E7vXb7016648>