fixed shutdown order to prevent crash when kernel interface schedules events

This commit is contained in:
Martin Willi 2007-09-12 07:12:25 +00:00
parent f25156dfc3
commit 39cc6d1ad7
1 changed files with 1 additions and 1 deletions

View File

@ -174,11 +174,11 @@ static void destroy(private_daemon_t *this)
this->public.processor->set_threads(this->public.processor, 0);
/* close all IKE_SAs */
DESTROY_IF(this->public.ike_sa_manager);
DESTROY_IF(this->public.kernel_interface);
DESTROY_IF(this->public.scheduler);
DESTROY_IF(this->public.interfaces);
DESTROY_IF(this->public.backends);
DESTROY_IF(this->public.credentials);
DESTROY_IF(this->public.kernel_interface);
DESTROY_IF(this->public.sender);
DESTROY_IF(this->public.receiver);
DESTROY_IF(this->public.socket);