File fix_plog_initialization.patch of Package ipsec-tools.6589
[Ipsec-tools-devel] Move ploginit() up to enable logging early on
From: Sven Vermeulen <sven.vermeulen@si...>
Date: 2013-07-07 08:54:22
Acked-by: Jiri Bohac
References: bsc#1002216
Hi all
I had some troubles getting labeled ipsec to work and found out I missed
(important) logging events generated by the init_avc() method because the
ploginit(), which initializes the logging infrastructure, was called after
init_avc().
The below patch moves the ploginit() up, allowing these logging events to
show up as well.
--- a/src/racoon/main.c.orig 2013-07-07 10:51:39.653746834 +0200
+++ b/src/racoon/main.c 2013-07-07 10:51:50.730746858 +0200
@@ -290,6 +290,8 @@
/* NOTREACHED*/
}
+ ploginit();
+
#ifdef DEBUG_RECORD_MALLOCATION
DRM_init();
#endif
@@ -302,8 +304,6 @@
oakley_dhinit();
compute_vendorids();
- ploginit();
-
plog(LLV_INFO, LOCATION, NULL, "%s\n", version);
plog(LLV_INFO, LOCATION, NULL, "@(#)"
"This product linked %s (http://www.openssl.org/)"