Commit b0811f81 authored by Chul Lee's avatar Chul Lee Committed by Randeep

Update StartMultipleOwnershipTransfer to prevent unnecessary communications

Change-Id: I151244bed344640fdcb396cd4d2be1f82a64ca0e
Signed-off-by: default avatarChul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16489Reviewed-by: default avatarJihun Ha <jihun.ha@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
(cherry picked from commit 415884f0)
Reviewed-on: https://gerrit.iotivity.org/gerrit/16579
parent 82c4c656
......@@ -1005,6 +1005,15 @@ static OCStackResult StartMultipleOwnershipTransfer(OTMContext_t* motCtx,
SetMOTResult(motCtx, res);
return res;
}
if (NULL == selectedDevice->doxm->mom ||
(selectedDevice->doxm->mom &&
OIC_MULTIPLE_OWNER_DISABLE == selectedDevice->doxm->mom->mode))
{
res = OC_STACK_NOT_ACCEPTABLE;
OIC_LOG(ERROR, TAG, "Selected device's MOT is disabled.");
SetMOTResult(motCtx, res);
return res;
}
//Checking duplication of Device ID.
char* strUuid = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment