X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fsecurity%2Fsrc%2Fdoxmresource.c;h=e88a381f693edf78ef0d391e82517f11f254a37c;hb=a19db60b7dd90b1984c00ff9f1ba58a57cc1e7f0;hp=6d35780e01e96f63b1b438065bd354facb392a35;hpb=89d2afd99b16f0ea4c6d8b054fdf02ccc9c6ec0b;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/security/src/doxmresource.c b/resource/csdk/security/src/doxmresource.c index 6d35780..e88a381 100644 --- a/resource/csdk/security/src/doxmresource.c +++ b/resource/csdk/security/src/doxmresource.c @@ -1310,6 +1310,13 @@ static OCEntityHandlerResult HandleDoxmPostRequest(OCEntityHandlerRequest * ehRe ehRet = OC_EH_NOT_ACCEPTABLE; goto exit; } + + if(0 != memcmp(&gDoxm->owner.id, &newDoxm->owner.id, sizeof(gDoxm->owner.id))) + { + OIC_LOG(ERROR, TAG, "Not acceptable request for owned property"); + ehRet = OC_EH_NOT_ACCEPTABLE; + } + //Update gDoxm based on newDoxm updateWriteableProperty(newDoxm, gDoxm);