diff options
author | Martin Willi <martin@revosec.ch> | 2011-06-29 12:08:24 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-09-12 13:02:51 +0200 |
commit | f8437dd8d2582d75aeec7933107bad9839fead74 (patch) | |
tree | 0c2b2e3e66b119ac47400efd11aa71b6b14e64d1 /src/libcharon/daemon.c | |
parent | 40e53c40d4175f865584702110f78ce0f1c92eb4 (diff) | |
download | strongswan-f8437dd8d2582d75aeec7933107bad9839fead74.tar.bz2 strongswan-f8437dd8d2582d75aeec7933107bad9839fead74.tar.xz |
Clear traps during shutdown before unloading kernel plugins
Diffstat (limited to 'src/libcharon/daemon.c')
-rw-r--r-- | src/libcharon/daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c index 12c6b2a9e..f21a7951c 100644 --- a/src/libcharon/daemon.c +++ b/src/libcharon/daemon.c @@ -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 */ |