summaryrefslogtreecommitdiff
path: root/sbin/iked/ikev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/iked/ikev2.c')
-rw-r--r--sbin/iked/ikev2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index 3a4b931b934..bbcc6c13d0a 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.30 2011/01/12 14:22:25 mikeb Exp $ */
+/* $OpenBSD: ikev2.c,v 1.31 2011/01/12 14:23:53 mikeb Exp $ */
/* $vantronix: ikev2.c,v 1.101 2010/06/03 07:57:33 reyk Exp $ */
/*
@@ -3648,8 +3648,7 @@ ikev2_childsa_delete(struct iked *env, struct iked_sa *sa, u_int8_t saproto,
peerspi = csa->csa_peerspi;
key.csa_spi = csa->csa_spi;
- if (csa->csa_loaded ||
- RB_FIND(iked_ipsecsas, &env->sc_ipsecsas, &key))
+ if (RB_FIND(iked_ipsecsas, &env->sc_ipsecsas, &key))
RB_REMOVE(iked_ipsecsas, &env->sc_ipsecsas, csa);
TAILQ_REMOVE(&sa->sa_childsas, csa, csa_entry);
childsa_free(csa);