Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160296560
D49214.id151940.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
846 B
Referenced Files
None
Subscribers
None
D49214.id151940.diff
View Options
diff --git a/sys/netpfil/pf/pf_table.c b/sys/netpfil/pf/pf_table.c
--- a/sys/netpfil/pf/pf_table.c
+++ b/sys/netpfil/pf/pf_table.c
@@ -569,8 +569,11 @@
if (rv)
return (rv);
- KASSERT(w.pfrw_free == 0, ("%s: corruption detected (%d)", __func__,
- w.pfrw_free));
+ if (w.pfrw_free) {
+ printf("%s: corruption detected (%d).\n", __func__,
+ w.pfrw_free);
+ return (ENOTTY);
+ }
*size = kt->pfrkt_cnt;
return (0);
@@ -623,10 +626,11 @@
return (rv);
if (w.pfrw_free) {
- printf("pfr_get_astats: corruption detected (%d).\n",
+ printf("%s: corruption detected (%d).\n", __func__,
w.pfrw_free);
return (ENOTTY);
}
+
*size = kt->pfrkt_cnt;
return (0);
}
@@ -852,6 +856,8 @@
struct pfr_kentry *p;
int rv;
+ PF_RULES_WASSERT();
+
p = pfr_lookup_addr(kt, ad, 1);
if (p != NULL)
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 12:56 AM (15 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34266271
Default Alt Text
D49214.id151940.diff (846 B)
Attached To
Mode
D49214: pf: add two asserts and align runtime debug for pf_get_addrs()
Attached
Detach File
Event Timeline
Log In to Comment