From dec598220b9a293c4ec75e593ab642a8945fa4fc Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 23 Mar 2006 15:25:43 +0000 Subject: - rewrite of logger_manager, uses now one instance per context - cleanups for logger here and there - removed critical flag check in payload verification (conformance to IKEv2) - so thats and theres everywere... ;-) --- Source/charon/encoding/parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/charon/encoding/parser.c') diff --git a/Source/charon/encoding/parser.c b/Source/charon/encoding/parser.c index f161391bd..769a815df 100644 --- a/Source/charon/encoding/parser.c +++ b/Source/charon/encoding/parser.c @@ -1027,7 +1027,6 @@ static void reset_context (private_parser_t *this) */ static void destroy(private_parser_t *this) { - charon->logger_manager->destroy_logger(charon->logger_manager,this->logger); allocator_free(this); } @@ -1038,7 +1037,7 @@ parser_t *parser_create(chunk_t data) { private_parser_t *this = allocator_alloc_thing(private_parser_t); - this->logger = charon->logger_manager->create_logger(charon->logger_manager, PARSER, NULL); + this->logger = charon->logger_manager->get_logger(charon->logger_manager, PARSER); this->public.parse_payload = (status_t(*)(parser_t*,payload_type_t,payload_t**)) parse_payload; this->public.reset_context = (void(*)(parser_t*)) reset_context; -- cgit v1.2.3