Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160280015
D49214.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
697 B
Referenced Files
None
Subscribers
None
D49214.id.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);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 9:24 PM (11 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34259371
Default Alt Text
D49214.id.diff (697 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