From: Martin Willi Date: Thu, 9 Oct 2014 14:15:29 +0000 (+0200) Subject: vici: Cancel processor before calling library_deinit() X-Git-Tag: 5.2.1rc1~8^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d85135c5713f3bddebdc5ccc3c0bf0fa4b022a;p=thirdparty%2Fstrongswan.git vici: Cancel processor before calling library_deinit() For non-direct libstrongswan users, the deinitialization segfaults because of the missing worker thread cancellation. --- diff --git a/src/libcharon/plugins/vici/libvici.c b/src/libcharon/plugins/vici/libvici.c index 20b007447f..c0205ccb64 100644 --- a/src/libcharon/plugins/vici/libvici.c +++ b/src/libcharon/plugins/vici/libvici.c @@ -762,5 +762,6 @@ void vici_init() void vici_deinit() { + lib->processor->cancel(lib->processor); library_deinit(); }