summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/iked/ikev2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index b335af5a2f3..81d21f78529 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.197 2020/03/18 22:12:43 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.198 2020/03/20 18:11:39 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -2526,8 +2526,11 @@ ikev2_handle_notifies(struct iked *env, struct iked_message *msg)
if ((sa = msg->msg_sa) == NULL)
return (-1);
- if (msg->msg_flags & IKED_MSG_FLAGS_CHILD_SA_NOT_FOUND)
+ if (msg->msg_flags & IKED_MSG_FLAGS_CHILD_SA_NOT_FOUND) {
sa->sa_stateflags &= ~IKED_REQ_CHILDSA;
+ ibuf_release(sa->sa_simult);
+ sa->sa_simult = NULL;
+ }
if ((msg->msg_flags & IKED_MSG_FLAGS_FRAGMENTATION) && env->sc_frag) {
log_debug("%s: fragmentation enabled", __func__);