Commit ca551487 authored by Andrii Shtompel's avatar Andrii Shtompel Committed by Dmitriy Zhuravlev

[IOT-2282] Do not update ACL in SVR DB when receive NULL aces from cloud

Change-Id: I0aea3490cd9f41c6a192c2ed87d8f49c80f6ac3c
Signed-off-by: default avatarAndrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20193Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarOleksii Beketov <ol.beketov@samsung.com>
Reviewed-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
parent 42a7bac4
......@@ -194,6 +194,13 @@ static OCStackResult handleAclGetInfoResponse(void *ctx, void **data, OCClientRe
OIC_LOG_ACL(INFO, acl);
if (NULL == acl->aces)
{
OIC_LOG(WARNING, TAG, "NULL aces received. Database update is not required");
OIC_LOG(WARNING, TAG, "Assume that it is correct behavior");
goto exit;
}
result = InstallACL(acl);
if (result != OC_STACK_OK)
{
......
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