aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/sa/ike_sa_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/sa/ike_sa_manager.c')
-rw-r--r--Source/charon/sa/ike_sa_manager.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/charon/sa/ike_sa_manager.c b/Source/charon/sa/ike_sa_manager.c
index 0eec8ea5d..ebb306a49 100644
--- a/Source/charon/sa/ike_sa_manager.c
+++ b/Source/charon/sa/ike_sa_manager.c
@@ -667,9 +667,6 @@ static void destroy(private_ike_sa_manager_t *this)
this->logger->log(this->logger,CONTROL | LEVEL2,"IKE_SA's deleted");
pthread_mutex_unlock(&(this->mutex));
- /* destroy logger at end */
- charon->logger_manager->destroy_logger(charon->logger_manager,this->logger);
-
allocator_free(this);
}
@@ -695,7 +692,7 @@ ike_sa_manager_t *ike_sa_manager_create()
this->delete_entry = delete_entry;
/* initialize private variables */
- this->logger = charon->logger_manager->create_logger(charon->logger_manager,IKE_SA_MANAGER,NULL);
+ this->logger = charon->logger_manager->get_logger(charon->logger_manager, IKE_SA_MANAGER);
this->ike_sa_list = linked_list_create();