mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Use memset with structure size.
This commit is contained in:
parent
a637f9fcff
commit
3667f39ea3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue