Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156735128
D45101.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
645 B
Referenced Files
None
Subscribers
None
D45101.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
@@ -1353,6 +1353,7 @@
sk : NULL);
printf("\n");
}
+ s->timeout = PFTM_UNLINKED;
PF_HASHROW_UNLOCK(ih);
KEYS_UNLOCK();
uma_zfree(V_pf_state_key_z, sk);
@@ -1421,6 +1422,7 @@
struct pf_keyhash *kh;
NET_EPOCH_ASSERT();
+ MPASS(s->timeout >= PFTM_MAX);
pf_sctp_multihome_detach_addr(s);
@@ -1552,6 +1554,7 @@
break;
if (cur != NULL) {
+ s->timeout = PFTM_UNLINKED;
PF_HASHROW_UNLOCK(ih);
if (V_pf_status.debug >= PF_DEBUG_MISC) {
printf("pf: state ID collision: "
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 12:10 AM (5 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33161585
Default Alt Text
D45101.diff (645 B)
Attached To
Mode
D45101: pf: always mark states as unlinked before detaching them
Attached
Detach File
Event Timeline
Log In to Comment