summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2010-06-10 07:35:41 +0000
committerreyk <reyk@openbsd.org>2010-06-10 07:35:41 +0000
commit223965a35193eeff1ca4a9f0adb31e2892a3aba7 (patch)
treebf22356427e8fbdcc2255175c3e62c31a97845f2
parentnext -> return after code change (noticed by Antti Harri) (diff)
downloadwireguard-openbsd-223965a35193eeff1ca4a9f0adb31e2892a3aba7.tar.xz
wireguard-openbsd-223965a35193eeff1ca4a9f0adb31e2892a3aba7.zip
only call RB_REMOVE once when removing an SA.
-rw-r--r--sbin/iked/policy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/iked/policy.c b/sbin/iked/policy.c
index 62c30d90362..40c3a27b576 100644
--- a/sbin/iked/policy.c
+++ b/sbin/iked/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.1 2010/06/03 16:41:12 reyk Exp $ */
+/* $OpenBSD: policy.c,v 1.2 2010/06/10 07:35:41 reyk Exp $ */
/* $vantronix: policy.c,v 1.29 2010/05/28 15:34:35 reyk Exp $ */
/*
@@ -210,7 +210,6 @@ sa_free(struct iked *env, struct iked_sa *sa)
print_spi(sa->sa_hdr.sh_ispi, 8),
print_spi(sa->sa_hdr.sh_rspi, 8));
- (void)RB_REMOVE(iked_sas, &env->sc_sas, sa);
config_free_sa(env, sa);
}