From: Tobias Brunner Date: Thu, 29 Apr 2010 12:33:29 +0000 (+0200) Subject: Initialize libstrongswan in starter (fixes Vstr logging). X-Git-Tag: 4.4.0~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26a3d7e78e18b3d0a74f0c32b1fea9edb5b636a3;p=thirdparty%2Fstrongswan.git Initialize libstrongswan in starter (fixes Vstr logging). --- 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++) {