summaryrefslogtreecommitdiff
path: root/src/libcharon/sa/connect_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/sa/connect_manager.c')
-rw-r--r--src/libcharon/sa/connect_manager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcharon/sa/connect_manager.c b/src/libcharon/sa/connect_manager.c
index 1fb286863..972cc98ad 100644
--- a/src/libcharon/sa/connect_manager.c
+++ b/src/libcharon/sa/connect_manager.c
@@ -1194,7 +1194,10 @@ static job_requeue_t initiate_mediated(initiate_data_t *data)
DBG1(DBG_IKE, "establishing mediated connection failed");
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager, sa);
}
- charon->ike_sa_manager->checkin(charon->ike_sa_manager, sa);
+ else
+ {
+ charon->ike_sa_manager->checkin(charon->ike_sa_manager, sa);
+ }
}
iterator->destroy(iterator);
}