From fa9f1013452d87f32f417fee7b51798acd6306cc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 6 Aug 2010 19:28:28 +0200 Subject: [PATCH] Properly initialize libstrongswan in _copyright. This is required if libvstr is used. --- src/_copyright/_copyright.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/_copyright/_copyright.c b/src/_copyright/_copyright.c index 9f0ad9785..072998345 100644 --- a/src/_copyright/_copyright.c +++ b/src/_copyright/_copyright.c @@ -20,7 +20,9 @@ #include #include #include + #include +#include char usage[] = "Usage: ipsec _copyright"; struct option opts[] = { @@ -40,6 +42,9 @@ main(int argc, char *argv[]) const char **notice = ipsec_copyright_notice(); const char **co; + library_init(NULL); + atexit(library_deinit); + while ((opt = getopt_long(argc, argv, "", opts, NULL)) != EOF) switch (opt) { case 'h': /* help */