terminate imc/imv that couldn't be initialized properly
This commit is contained in:
@@ -130,6 +130,12 @@ static bool load_imcs(char *filename)
|
||||
}
|
||||
if (!charon->imcs->add(charon->imcs, imc))
|
||||
{
|
||||
if (imc->terminate &&
|
||||
imc->terminate(imc->get_id(imc)) != TNC_RESULT_SUCCESS)
|
||||
{
|
||||
DBG1(DBG_TNC, "IMC \"%s\" not terminated successfully",
|
||||
imc->get_name(imc));
|
||||
}
|
||||
imc->destroy(imc);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -130,6 +130,12 @@ static bool load_imvs(char *filename)
|
||||
}
|
||||
if (!charon->imvs->add(charon->imvs, imv))
|
||||
{
|
||||
if (imv->terminate &&
|
||||
imv->terminate(imv->get_id(imv)) != TNC_RESULT_SUCCESS)
|
||||
{
|
||||
DBG1(DBG_TNC, "IMV \"%s\" not terminated successfully",
|
||||
imv->get_name(imv));
|
||||
}
|
||||
imv->destroy(imv);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user