diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-01 15:56:51 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-01 15:56:51 +0000 |
commit | 5d187bd234913b8b1004f3e21ca236d458949831 (patch) | |
tree | b12dc8b1b74192e94adb7bf347520865c1bb84eb /Source/charon/daemon.c | |
parent | fb8aa445d27227bf2b04c1c09e94206a007a18aa (diff) | |
download | strongswan-5d187bd234913b8b1004f3e21ca236d458949831.tar.bz2 strongswan-5d187bd234913b8b1004f3e21ca236d458949831.tar.xz |
- working policy installation and removal
Diffstat (limited to 'Source/charon/daemon.c')
-rw-r--r-- | Source/charon/daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index 8e5f5e4bb..21ed44ef8 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -196,6 +196,10 @@ static void initialize(private_daemon_t *this) */ static void destroy(private_daemon_t *this) { + if (this->public.ike_sa_manager != NULL) + { + this->public.ike_sa_manager->destroy(this->public.ike_sa_manager); + } if (this->public.kernel_interface != NULL) { this->public.kernel_interface->destroy(this->public.kernel_interface); @@ -232,10 +236,6 @@ static void destroy(private_daemon_t *this) { this->public.socket->destroy(this->public.socket); } - if (this->public.ike_sa_manager != NULL) - { - this->public.ike_sa_manager->destroy(this->public.ike_sa_manager); - } if (this->public.configuration_manager != NULL) { this->public.configuration_manager->destroy(this->public.configuration_manager); |