Skip to content

Commit 10f8834

Browse files
committed
ikev2: Don't recreate IKE_SA if deletion fails after make-before-break reauth
Fixes: 7457143 ("During reauthentication reestablish IKE_SA even if deleting the old one fails.") Fixes #2847.
1 parent 01f462f commit 10f8834

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcharon/sa/ike_sa.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,9 @@ METHOD(ike_sa_t, retransmit, status_t,
24042404
}
24052405
case IKE_DELETING:
24062406
DBG1(DBG_IKE, "proper IKE_SA delete failed, peer not responding");
2407-
if (has_condition(this, COND_REAUTHENTICATING))
2407+
if (has_condition(this, COND_REAUTHENTICATING) &&
2408+
!lib->settings->get_bool(lib->settings,
2409+
"%s.make_before_break", FALSE, lib->ns))
24082410
{
24092411
DBG1(DBG_IKE, "delete during reauthentication failed, "
24102412
"trying to reestablish IKE_SA anyway");

0 commit comments

Comments
 (0)