Page MenuHomeFreeBSD

D49214.id151941.diff
No OneTemporary

D49214.id151941.diff

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

Mime Type
text/plain
Expires
Tue, Jun 23, 10:46 PM (12 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34259371
Default Alt Text
D49214.id151941.diff (697 B)

Event Timeline