diff options
author | Martin Willi <martin@strongswan.org> | 2006-02-09 16:25:02 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-02-09 16:25:02 +0000 |
commit | 5b97779f6642aef62daa9185fad9422452d40aa6 (patch) | |
tree | 51e4ade06ff2c95c7adf4e171bed466abd2699ce /Source/charon/daemon.c | |
parent | dfa6e086a0e70523e2713df79dd76a4b1efbecac (diff) | |
download | strongswan-5b97779f6642aef62daa9185fad9422452d40aa6.tar.bz2 strongswan-5b97779f6642aef62daa9185fad9422452d40aa6.tar.xz |
- some fixes here and there
Diffstat (limited to 'Source/charon/daemon.c')
-rw-r--r-- | Source/charon/daemon.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index 4ba5d60be..8e5f5e4bb 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -187,7 +187,8 @@ static void initialize(private_daemon_t *this) this->public.sender = sender_create(); this->public.receiver = receiver_create(); this->public.scheduler = scheduler_create(); - this->public.thread_pool = thread_pool_create(NUMBER_OF_WORKING_THREADS); + this->public.kernel_interface = kernel_interface_create(); + this->public.thread_pool = thread_pool_create(NUMBER_OF_WORKING_THREADS); } /** @@ -195,6 +196,10 @@ static void initialize(private_daemon_t *this) */ static void destroy(private_daemon_t *this) { + if (this->public.kernel_interface != NULL) + { + this->public.kernel_interface->destroy(this->public.kernel_interface); + } if (this->public.receiver != NULL) { this->public.receiver->destroy(this->public.receiver); @@ -272,6 +277,7 @@ private_daemon_t *daemon_create() this->public.sender= NULL; this->public.receiver = NULL; this->public.scheduler = NULL; + this->public.kernel_interface = NULL; this->public.thread_pool = NULL; this->main_thread_id = pthread_self(); |