]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
re-establish null pointer if IMC/IMV manager plugin could not be installed
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 14 Nov 2010 08:50:01 +0000 (09:50 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 14 Nov 2010 08:50:01 +0000 (09:50 +0100)
src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c
src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c

index c132f3960647670b3e49fe77db73fad2ce6855de..89888040a0964bdaf54cac278f66d5703cfac306 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;
        }
index 52c39a85a4f7bb18bb9f316d79fb59ac0b7296e8..f238f01ea573dd2a06927deb0e9fdb5eaf8f0687 100644 (file)
@@ -172,6 +172,7 @@ plugin_t *tnc_imv_plugin_create()
        if (!load_imvs(tnc_config))
        {
                charon->imvs->destroy(charon->imvs);
+               charon->imvs = NULL;
                free(this);
                return NULL;
        }