re-establish null pointer if IMC/IMV manager plugin could not be installed

This commit is contained in:
Andreas Steffen committed 2010-11-14 09:50:01 +01:00
1 parent 10647add81
commit 77b6f245e4
2 files changed
+2

No files matched your search

@@ -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;
}
@@ -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;
}