Fix for broke condition
@@ -368,12 +368,14 @@ oc_sec_check_acl(oc_method_t method, oc_resource_t *resource,
since this also a discovery resource.
*/
if (pstat->s == OC_DOS_RFOTM && method == OC_GET &&
+ (
(oc_string_len(resource->uri) == 8 &&
memcmp(oc_string(resource->uri), "/oic/res", 8) == 0) ||
(oc_string_len(resource->uri) == 6 &&
memcmp(oc_string(resource->uri), "/oic/d", 6) == 0) ||
(oc_string_len(resource->uri) == 6 &&
- memcmp(oc_string(resource->uri), "/oic/p", 6) == 0)) {
+ memcmp(oc_string(resource->uri), "/oic/p", 6) == 0))
+ ){
return true;
}
