Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F104143443
D35573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
D35573.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
@@ -3860,7 +3860,7 @@
struct pf_keth_ruleset *ruleset = NULL;
struct pf_mtag *mtag;
struct pf_keth_ruleq *rules;
- struct pf_addr *src, *dst;
+ struct pf_addr *src = NULL, *dst = NULL;
sa_family_t af = 0;
uint16_t proto;
int asd = 0, match = 0;
@@ -3958,13 +3958,13 @@
"dst");
r = TAILQ_NEXT(r, entries);
}
- else if (af != 0 && PF_MISMATCHAW(&r->ipsrc.addr, src, af,
+ else if (src != NULL && PF_MISMATCHAW(&r->ipsrc.addr, src, af,
r->ipsrc.neg, kif, M_GETFIB(m))) {
SDT_PROBE3(pf, eth, test_rule, mismatch, r->nr, r,
"ip_src");
r = TAILQ_NEXT(r, entries);
}
- else if (af != 0 && PF_MISMATCHAW(&r->ipdst.addr, dst, af,
+ else if (dst != NULL && PF_MISMATCHAW(&r->ipdst.addr, dst, af,
r->ipdst.neg, kif, M_GETFIB(m))) {
SDT_PROBE3(pf, eth, test_rule, mismatch, r->nr, r,
"ip_dst");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 1:39 AM (10 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15038095
Default Alt Text
D35573.diff (967 B)
Attached To
Mode
D35573: pf: reduce the risk of src/dst mis-use
Attached
Detach File
Event Timeline
Log In to Comment