Commit 5349dadc authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Aleksey

check pstat in PostProvisioningStatus

check pstat is null before referencing in PostProvisioningStatus

Change-Id: I57c9f5088ceb762930056879c6db16b2b80e9530
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent 0c66b6f8
......@@ -2794,6 +2794,7 @@ OCStackResult PostProvisioningStatus(OTMContext_t* otmCtx)
VERIFY_NOT_NULL_RETURN(TAG, otmCtx, ERROR, OC_STACK_INVALID_PARAM);
VERIFY_NOT_NULL_RETURN(TAG, otmCtx->selectedDeviceInfo, ERROR, OC_STACK_INVALID_PARAM);
VERIFY_NOT_NULL_RETURN(TAG, otmCtx->selectedDeviceInfo->pstat, ERROR, OC_STACK_INVALID_PARAM);
OCProvisionDev_t* deviceInfo = otmCtx->selectedDeviceInfo;
// Change the TAKE_OWNER bit of TM to 0 (optional in Client Directed)
......
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