summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-07 11:54:03 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-08-07 11:54:03 +0000
commitc3d7ac66121443cc12be9008b2bb13e9b25ecc9e (patch)
tree3ab722c9e70a49a45ee4b0ea5b7022c23c40dfd0 /sys/net
parent854d97178727003feda336ce59d8a8ead42c5ada (diff)
Do not blindly reset the state count to zero after a clear, as we may not
have purged all states in the case when an interface name was specified. pf_purge_expired_states should decrease the count as appropriate. ok dhartmei
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf_ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index edd9ce60d5d..5ad62d21294 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.153 2005/08/07 11:37:33 dhartmei Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.154 2005/08/07 11:54:02 pascoe Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1696,7 +1696,6 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
}
}
pf_purge_expired_states();
- pf_status.states = 0;
psk->psk_af = killed;
#if NPFSYNC
pfsync_clear_states(pf_status.hostid, psk->psk_ifname);