vici: Cancel processor before calling library_deinit()
authorMartin Willi <martin@revosec.ch>
Thu, 9 Oct 2014 14:15:29 +0000 (16:15 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 10 Oct 2014 09:42:18 +0000 (11:42 +0200)
For non-direct libstrongswan users, the deinitialization segfaults because
of the missing worker thread cancellation.

src/libcharon/plugins/vici/libvici.c

index 20b0074..c0205cc 100644 (file)
@@ -762,5 +762,6 @@ void vici_init()
 
 void vici_deinit()
 {
+       lib->processor->cancel(lib->processor);
        library_deinit();
 }