summaryrefslogtreecommitdiff
path: root/sbin/iked/ikev2_msg.c
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-07-08 21:35:36 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-07-08 21:35:36 +0000
commit6f89bfd8ed322011b7419e32b18c780879df5cbf (patch)
tree0b60f66357b6f45b51d421daa5fc2c92643ae809 /sbin/iked/ikev2_msg.c
parent8fc429301e9cd74ba786ee50ee09df3f5f4edae7 (diff)
Always try to retransmit on sendtofrom() errors to ensure the SA
is properly cleaned up in ikev2_msg_retransmit_timeout(). ok patrick@
Diffstat (limited to 'sbin/iked/ikev2_msg.c')
-rw-r--r--sbin/iked/ikev2_msg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/iked/ikev2_msg.c b/sbin/iked/ikev2_msg.c
index cc76dfde3f5..c865b6f3d96 100644
--- a/sbin/iked/ikev2_msg.c
+++ b/sbin/iked/ikev2_msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2_msg.c,v 1.68 2020/05/26 20:24:31 tobhe Exp $ */
+/* $OpenBSD: ikev2_msg.c,v 1.69 2020/07/08 21:35:35 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -293,8 +293,6 @@ ikev2_msg_send(struct iked *env, struct iked_message *msg)
timer_add(env, &sa->sa_timer,
IKED_IKE_SA_DELETE_TIMEOUT);
}
- if (sa != NULL)
- return (-1);
}
if (sa == NULL)