Use memset with structure size.
This commit is contained in:
parent
a637f9fcff
commit
3667f39ea3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315233
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user