nat64lsn: Use memset() with structure, not pointer, size
PR: 217738 Submitted by: Svyatoslav <razmyslov at viva64.com> Sponsored by: Viva64 (PVS-Studio)
This commit is contained in:
parent
7e431900a5
commit
49b6a5d60a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315204
@ -215,7 +215,7 @@ nat64lsn_log(struct pfloghdr *plog, struct mbuf *m, sa_family_t family,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user