Initialize libstrongswan in starter (fixes Vstr logging).

This commit is contained in:
Tobias Brunner
2010-04-29 14:33:29 +02:00
parent 361f416d2c
commit 26a3d7e78e
+4
View File
@@ -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++)
{