From 26a3d7e78e18b3d0a74f0c32b1fea9edb5b636a3 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 29 Apr 2010 14:33:29 +0200 Subject: [PATCH] Initialize libstrongswan in starter (fixes Vstr logging). --- src/starter/starter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/starter/starter.c b/src/starter/starter.c index 0aab76d43d..a740b260d2 100644 --- a/src/starter/starter.c +++ b/src/starter/starter.c @@ -28,6 +28,7 @@ #include #include +#include #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++) { -- 2.47.3