Clear traps during shutdown before unloading kernel plugins

This commit is contained in:
Martin Willi
2011-09-12 13:02:51 +02:00
parent 40e53c40d4
commit f8437dd8d2
3 changed files with 16 additions and 0 deletions
+4
View File
@@ -106,6 +106,10 @@ static void destroy(private_daemon_t *this)
{
this->public.ike_sa_manager->flush(this->public.ike_sa_manager);
}
if (this->public.traps)
{
this->public.traps->flush(this->public.traps);
}
DESTROY_IF(this->public.receiver);
DESTROY_IF(this->public.sender);
/* unload plugins to release threads */