From: Martin Willi Date: Wed, 4 Nov 2015 12:25:07 +0000 (+0100) Subject: vici: Undo start actions when unloading configs X-Git-Tag: 5.4.0dr1~19^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b2d4a9d85e8bf44425012cb792e3311c11b3c5;p=thirdparty%2Fstrongswan.git vici: Undo start actions when unloading configs --- diff --git a/src/libcharon/plugins/vici/vici_config.c b/src/libcharon/plugins/vici/vici_config.c index ea6d2958a0..c1dbbc2ab3 100644 --- a/src/libcharon/plugins/vici/vici_config.c +++ b/src/libcharon/plugins/vici/vici_config.c @@ -2005,6 +2005,7 @@ CALLBACK(unload_conn, vici_message_t*, if (streq(cfg->get_name(cfg), conn_name)) { this->conns->remove_at(this->conns, enumerator); + clear_start_actions(this, cfg); cfg->destroy(cfg); found = TRUE; break;