aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unittest/OCFResourceTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/OCFResourceTest.cpp b/unittest/OCFResourceTest.cpp
index 62dcbca..7f37f80 100644
--- a/unittest/OCFResourceTest.cpp
+++ b/unittest/OCFResourceTest.cpp
@@ -469,8 +469,8 @@ static OCEntityHandlerResult ErrorEntityHandler(OCEntityHandlerFlag flag,
result = OC_EH_ERROR;
break;
}
- result = OC_EH_ERROR;
- response.ehResult = result;
+ result = OC_EH_OK;
+ response.ehResult = OC_EH_ERROR;
response.payload = reinterpret_cast<OCPayload *>(outPayload);
OCStackResult doResult = OCDoResponse(&response);
if (doResult != OC_STACK_OK)