summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2004-12-06 10:27:54 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2004-12-06 10:27:54 +0000
commit16c406400f665204972e9e16905be5a4f75e3dfb (patch)
tree950f476a8b84fb75f67675af99600aa711c0165b
parent32416910894706c922c773e54b55a2b266056754 (diff)
At PFSYNC_ACT_CLR:
Also purge states with an empty ifname. ok mcbride@
-rw-r--r--sys/net/if_pfsync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index aefa4aa19de..9010da00836 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.39 2004/11/16 20:07:56 mcbride Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.40 2004/12/06 10:27:53 mpf Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -323,6 +323,7 @@ pfsync_input(struct mbuf *m, ...)
RB_FOREACH(st, pf_state_tree_id, &tree_id) {
if (st->creatorid == creatorid)
st->timeout = PFTM_PURGE;
+ pf_purge_expired_state(st);
}
} else {
kif = pfi_lookup_if(cp->ifname);