Commit 80546768 authored by Dmitriy Zhuravlev's avatar Dmitriy Zhuravlev Committed by Randeep

[IOT-2036] Fix default error initialization

OC_EH_INTERNAL_SERVER_ERROR changed to OC_EH_OK in HandleACLPostRequest
since it does not change in positive cases

Change-Id: I51ea056dde853909681b07be6ce328e0657cac0f
Signed-off-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19739Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarAndrii Shtompel <a.shtompel@samsung.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
parent ed0c112b
...@@ -2117,6 +2117,7 @@ static OCEntityHandlerResult HandleACLPostRequest(const OCEntityHandlerRequest * ...@@ -2117,6 +2117,7 @@ static OCEntityHandlerResult HandleACLPostRequest(const OCEntityHandlerRequest *
OicSecDostype_t dos; OicSecDostype_t dos;
VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR); VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR);
ehRet = OC_EH_OK;
if ((DOS_RESET == dos.state) || if ((DOS_RESET == dos.state) ||
(DOS_RFNOP == dos.state)) (DOS_RFNOP == dos.state))
{ {
......
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