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:
Conrad Meyer 2017-03-13 17:53:46 +00:00
parent 7e431900a5
commit 49b6a5d60a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315204

View File

@ -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;