From b01f50e218e192ef42e3ac5b8e45f23ca6a7985f Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Tue, 15 Feb 2005 21:31:23 +0000 Subject: Fix scoping error which could cause some states with an empty ifname to be purged errneously. mpf@ ok --- sys/net/if_pfsync.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3