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 <>
Reviewed-on: default avatarJihun Ha <>
Tested-by: default avatarjenkins-iotivity <>
Reviewed-by: Randeep's avatarRandeep Singh <>
(cherry picked from commit 415884f0)
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))
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