summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index ff2fc84c724..aec095b1ab8 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.605 2008/07/04 00:09:31 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.606 2008/07/04 00:56:48 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -685,8 +685,8 @@ pf_state_key_attach(struct pf_state_key *sk, struct pf_state *s, int idx)
}
pool_put(&pf_state_key_pl, sk);
s->key[idx] = cur;
- }
- s->key[idx] = sk;
+ } else
+ s->key[idx] = sk;
if ((si = pool_get(&pf_state_item_pl, PR_NOWAIT)) == NULL) {
pf_state_key_detach(s, idx);