diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2005-02-15 21:31:23 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2005-02-15 21:31:23 +0000 |
commit | b01f50e218e192ef42e3ac5b8e45f23ca6a7985f (patch) | |
tree | 3e174f67c4f4a21a7f6df7febd6de0c360636be9 /sys | |
parent | 7f9e790e6258f10d1ef52de6fb97dc42440b879c (diff) |
Fix scoping error which could cause some states with an empty ifname to be
purged errneously. mpf@ ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_pfsync.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 9b28f316754..2ef3fbfbd9e 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.44 2005/01/20 17:54:26 mcbride Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.45 2005/02/15 21:31:22 aaron Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -321,9 +321,10 @@ pfsync_input(struct mbuf *m, ...) s = splsoftnet(); if (cp->ifname[0] == '\0') { RB_FOREACH(st, pf_state_tree_id, &tree_id) { - if (st->creatorid == creatorid) + if (st->creatorid == creatorid) { st->timeout = PFTM_PURGE; pf_purge_expired_state(st); + } } } else { kif = pfi_lookup_if(cp->ifname); |