aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-04-29 14:33:29 +0200
committerTobias Brunner <tobias@strongswan.org>2010-04-29 14:33:29 +0200
commit26a3d7e78e18b3d0a74f0c32b1fea9edb5b636a3 (patch)
treee0a7f66dc0bf691901ec16f54aa570744fe2aae5 /src/starter
parent361f416d2c2ccbab6e8960812be861bcdb0cb493 (diff)
downloadstrongswan-26a3d7e78e18b3d0a74f0c32b1fea9edb5b636a3.tar.bz2
strongswan-26a3d7e78e18b3d0a74f0c32b1fea9edb5b636a3.tar.xz
Initialize libstrongswan in starter (fixes Vstr logging).
Diffstat (limited to 'src/starter')
-rw-r--r--src/starter/starter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index 0aab76d43..a740b260d 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -28,6 +28,7 @@
#include <grp.h>
#include <freeswan.h>
+#include <library.h>
#include "../pluto/constants.h"
#include "../pluto/defs.h"
@@ -245,6 +246,9 @@ int main (int argc, char **argv)
log_to_stderr = TRUE;
base_debugging = DBG_NONE;
+ library_init(NULL);
+ atexit(library_deinit);
+
/* parse command line */
for (i = 1; i < argc; i++)
{