FreeBSD Bugzilla – Attachment 180763 Details for
Bug 217738
sbin/ipfw/nat64lsn.c: PVS-Studio: CWE-467: Use of sizeof() on a Pointer Type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git patch
nat64lsn.c.patch (text/plain), 469 bytes, created by
Svyatoslav
on 2017-03-13 11:32:04 UTC
(
hide
)
Description:
git patch
Filename:
MIME Type:
Creator:
Svyatoslav
Created:
2017-03-13 11:32:04 UTC
Size:
469 bytes
patch
obsolete
>diff --git a/sys/netpfil/ipfw/nat64/nat64lsn.c b/sys/netpfil/ipfw/nat64/nat64lsn.c >index a571bfc..d615f58 100644 >--- a/sys/netpfil/ipfw/nat64/nat64lsn.c >+++ b/sys/netpfil/ipfw/nat64/nat64lsn.c >@@ -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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217738
: 180763