summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2011-01-21 13:19:36 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2011-01-21 13:19:36 +0000
commit7f27a05e427c55e30152b26c77f8349b76101a6d (patch)
tree1efe654bbdcfcf9d350226e7efc3874e164dbd40 /sbin/iked
parent1242a48a7283ad9a20b3b150cebe8c24b8cc98e3 (diff)
Remove misleading error message.
ok mikeb@
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ikev2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index 4120fb8cdfc..ba1a91d5659 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.37 2011/01/21 13:09:46 reyk Exp $ */
+/* $OpenBSD: ikev2.c,v 1.38 2011/01/21 13:19:35 reyk Exp $ */
/* $vantronix: ikev2.c,v 1.101 2010/06/03 07:57:33 reyk Exp $ */
/*
@@ -3814,11 +3814,9 @@ ikev2_rekey_sa(struct iked *env, struct iked_spi *rekey)
struct iked_sa *sa;
key.csa_spi = *rekey;
- if ((csa = RB_FIND(iked_ipsecsas, &env->sc_ipsecsas, &key)) == NULL) {
- log_warnx("%s: SA %s is not registered as active", __func__,
- print_spi(rekey->spi, rekey->spi_size));
+ if ((csa = RB_FIND(iked_ipsecsas, &env->sc_ipsecsas, &key)) == NULL)
return;
- }
+
if (csa->csa_rekey) /* See if it's already taken care of */
return;
if ((sa = csa->csa_ikesa) == NULL) {