Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106167193
D33815.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
991 B
Referenced Files
None
Subscribers
None
D33815.diff
View Options
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6461,8 +6461,6 @@
if (!V_pf_status.running)
return (PF_PASS);
- memset(&pd, 0, sizeof(pd));
-
kif = (struct pfi_kkif *)ifp->if_pf_kif;
if (kif == NULL) {
@@ -6476,6 +6474,7 @@
if (m->m_flags & M_SKIP_FIREWALL)
return (PF_PASS);
+ memset(&pd, 0, sizeof(pd));
pd.pf_mtag = pf_find_mtag(m);
if (ip_dn_io_ptr != NULL && pd.pf_mtag != NULL &&
@@ -6962,9 +6961,6 @@
if (!V_pf_status.running)
return (PF_PASS);
- memset(&pd, 0, sizeof(pd));
- pd.pf_mtag = pf_find_mtag(m);
-
kif = (struct pfi_kkif *)ifp->if_pf_kif;
if (kif == NULL) {
DPFPRINTF(PF_DEBUG_URGENT,
@@ -6977,6 +6973,9 @@
if (m->m_flags & M_SKIP_FIREWALL)
return (PF_PASS);
+ memset(&pd, 0, sizeof(pd));
+ pd.pf_mtag = pf_find_mtag(m);
+
if (ip_dn_io_ptr != NULL && pd.pf_mtag != NULL &&
pd.pf_mtag->flags & PF_TAG_DUMMYNET) {
pd.pf_mtag->flags &= ~PF_TAG_DUMMYNET;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 12:07 PM (9 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15614165
Default Alt Text
D33815.diff (991 B)
Attached To
Mode
D33815: pf: postpone clearing of struct pf_pdesc
Attached
Detach File
Event Timeline
Log In to Comment