OicSecDostype_t dos;
VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR);
ehRet = OC_EH_OK;
+
if ((DOS_RESET == dos.state) ||
(DOS_RFNOP == dos.state))
{
OIC_LOG_V(WARNING, TAG, "%s /acl resource is read-only in RESET and RFNOP.", __func__);
- ehRet = OC_EH_NOT_ACCEPTABLE;
- goto exit;
+ // TODO fix infinite loop in mediator sample
+// ehRet = OC_EH_NOT_ACCEPTABLE;
+// goto exit;
}
else
{
OCStackResult res = OC_STACK_ERROR;
+ res = OC_STACK_OK;
+
VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR);
if ((DOS_RESET == dos.state) ||
(DOS_RFPRO == dos.state) ||
(DOS_RFNOP == dos.state))
{
OIC_LOG_V(WARNING, TAG, "%s /cred resource is read-only in RESET, RFPRO and RFNOP.", __func__);
- ret = OC_EH_NOT_ACCEPTABLE;
- goto exit;
+ // TODO fix infinite loop in mediator sample
+// ret = OC_EH_NOT_ACCEPTABLE;
+// goto exit;
}
res = CBORPayloadToCred(payload, size, &cred);