Treat oic.wk.con an NCR
@@ -550,11 +550,12 @@ oc_core_is_DCR(oc_resource_t *resource, size_t device)
size_t DCRs_end = device_resources + OCF_D, i;
for (i = device_resources + 1; i <= DCRs_end; i++) {
+ if (resource == &core_resources[i]) {
if (i == (device_resources + OCF_INTROSPECTION_WK) ||
- i == (device_resources + OCF_INTROSPECTION_DATA)) {
- continue;
+ i == (device_resources + OCF_INTROSPECTION_DATA) ||
+ i == (device_resources + OCF_CON)) {
+ return false;
}
- if (resource == &core_resources[i]) {
return true;
}
}
