vici: Undo start actions when unloading configs
authorMartin Willi <martin@strongswan.org>
Wed, 4 Nov 2015 12:25:07 +0000 (13:25 +0100)
committerMartin Willi <martin@strongswan.org>
Mon, 7 Dec 2015 09:05:07 +0000 (10:05 +0100)
src/libcharon/plugins/vici/vici_config.c

index ea6d295..c1dbbc2 100644 (file)
@@ -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;