aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r--src/charon/daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c
index 77a41b412..1f2448376 100644
--- a/src/charon/daemon.c
+++ b/src/charon/daemon.c
@@ -169,6 +169,10 @@ static void destroy(private_daemon_t *this)
this->public.processor->set_threads(this->public.processor, 0);
}
/* close all IKE_SAs */
+ if (this->public.ike_sa_manager)
+ {
+ this->public.ike_sa_manager->flush(this->public.ike_sa_manager);
+ }
DESTROY_IF(this->public.plugins);
DESTROY_IF(this->public.ike_sa_manager);
DESTROY_IF(this->public.kernel_interface);