summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Heider <tobhe@cvs.openbsd.org>2021-11-26 14:05:02 +0000
committerTobias Heider <tobhe@cvs.openbsd.org>2021-11-26 14:05:02 +0000
commit4b57639b221cd0dda53a3d368a76519b19811fa7 (patch)
tree1a52a5ce952d438d1a4d1c586d1c2c40f362ce08
parente852efa9a7075dd792447691b20e8ef35ed4b484 (diff)
Fix ikev2_child_sa_rekey() warnings. The SPI can't be printed without a
parent SA.
-rw-r--r--sbin/iked/ikev2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index edc5c3fd067..18c4f29b10d 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.335 2021/11/24 20:48:00 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.336 2021/11/26 14:05:01 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -6574,12 +6574,12 @@ ikev2_child_sa_rekey(struct iked *env, struct iked_spi *rekey)
if (csa->csa_rekey) /* See if it's already taken care of */
return (0);
if ((sa = csa->csa_ikesa) == NULL) {
- log_warnx("%s: not established, SPI %s", SPI_SA(sa, __func__),
+ log_warnx("%s: SA %s doesn't have a parent SA", __func__,
print_spi(rekey->spi, rekey->spi_size));
return (0);
}
if (!sa_stateok(sa, IKEV2_STATE_ESTABLISHED)) {
- log_warnx("%s: SA %s is not established", __func__,
+ log_warnx("%s: not established, SPI %s", SPI_SA(sa, __func__),
print_spi(rekey->spi, rekey->spi_size));
return (0);
}