splitted IKE_SA manager destroy to allow plugin interaction

This commit is contained in:
Martin Willi
2008-04-17 10:46:25 +00:00
parent e5617e40d1
commit 46a5604a04
3 changed files with 28 additions and 5 deletions
+4
View File
@@ -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);