From: Tobias Brunner Date: Fri, 6 Aug 2010 17:28:28 +0000 (+0200) Subject: Properly initialize libstrongswan in _copyright. X-Git-Tag: 4.5.0~558 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa9f1013452d87f32f417fee7b51798acd6306cc;p=thirdparty%2Fstrongswan.git Properly initialize libstrongswan in _copyright. This is required if libvstr is used. --- diff --git a/src/_copyright/_copyright.c b/src/_copyright/_copyright.c index 9f0ad97855..0729983450 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 */