Properly select IMC/IMV according to given primary ID in reserve_id()
This commit is contained in:
@@ -193,7 +193,7 @@ METHOD(imc_manager_t, reserve_id, bool,
|
|||||||
enumerator = this->imcs->create_enumerator(this->imcs);
|
enumerator = this->imcs->create_enumerator(this->imcs);
|
||||||
while (enumerator->enumerate(enumerator, &imc))
|
while (enumerator->enumerate(enumerator, &imc))
|
||||||
{
|
{
|
||||||
if (imc->get_id(imc))
|
if (id == imc->get_id(imc))
|
||||||
{
|
{
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
*new_id = this->next_imc_id++;
|
*new_id = this->next_imc_id++;
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ METHOD(imv_manager_t, reserve_id, bool,
|
|||||||
enumerator = this->imvs->create_enumerator(this->imvs);
|
enumerator = this->imvs->create_enumerator(this->imvs);
|
||||||
while (enumerator->enumerate(enumerator, &imv))
|
while (enumerator->enumerate(enumerator, &imv))
|
||||||
{
|
{
|
||||||
if (imv->get_id(imv))
|
if (id == imv->get_id(imv))
|
||||||
{
|
{
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
*new_id = this->next_imv_id++;
|
*new_id = this->next_imv_id++;
|
||||||
|
|||||||
Reference in New Issue
Block a user