re-establish null pointer if IMC/IMV manager plugin could not be installed
[strongswan.git] / src / libcharon / plugins / tnc_imc / tnc_imc_plugin.c
index c132f39..8988804 100644 (file)
@@ -171,6 +171,7 @@ plugin_t *tnc_imc_plugin_create()
        if (!load_imcs(tnc_config))
        {
                charon->imcs->destroy(charon->imcs);
+               charon->imcs = NULL;
                free(this);
                return NULL;
        }