aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2018-04-16 15:57:45 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2018-04-16 15:57:45 -0700
commit997fa14a85d6827180753a511570c4421a84f221 (patch)
tree01a67a4793ce2026526c107c7341c2c121ab8cf3
parent2293c636dbb6e6df0a770517869f43f5ba820abe (diff)
Fix double free.HEADmaster
Change-Id: I24ae28afe095b77f5063ba3a439073f4b8092b7c Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
-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)