Use memset with structure size.

This commit is contained in:
Andrey V. Elsukov 2017-03-14 07:57:33 +00:00
parent a637f9fcff
commit 3667f39ea3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315233

View File

@ -69,7 +69,7 @@ nat64stl_log(struct pfloghdr *plog, struct mbuf *m, sa_family_t family,
{
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;