aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/parser.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-11 11:20:22 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-11 11:20:22 +0000
commit96d72d323d6ab3d3f505a1fd8c5175ebe4ce7363 (patch)
treeb2814a3eb504c9472bdbd1144ddd28e72f152df5 /Source/charon/parser.c
parentffd555f58e8f75622162efb2e9c6e5482d829f06 (diff)
downloadstrongswan-96d72d323d6ab3d3f505a1fd8c5175ebe4ce7363.tar.bz2
strongswan-96d72d323d6ab3d3f505a1fd8c5175ebe4ce7363.tar.xz
- fixed bug in logger_t not storing the name of it
Diffstat (limited to 'Source/charon/parser.c')
-rw-r--r--Source/charon/parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/charon/parser.c b/Source/charon/parser.c
index ecc0b235a..b072bc258 100644
--- a/Source/charon/parser.c
+++ b/Source/charon/parser.c
@@ -24,6 +24,7 @@
#include <arpa/inet.h>
#include "allocator.h"
+#include "globals.h"
#include "types.h"
#include "parser.h"
#include "logger.h"
@@ -379,7 +380,7 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ
*/
static status_t destroy(private_parser_t *this)
{
- this->logger->destroy(this->logger);
+ global_logger_manager->destroy_logger(global_logger_manager,this->logger);
allocator_free(this);
return SUCCESS;
@@ -397,7 +398,8 @@ parser_t *parser_create(payload_info_t **payload_infos)
return NULL;
}
- this->logger = logger_create("parser", ALL,NULL);
+ global_logger_manager->get_logger(global_logger_manager,PARSER,&(this->logger),"");
+
if (this->logger == NULL)
{
allocator_free(this);