Commit a9e1dcab authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Aleksey

ocstack: handler check

Check ehResponseHandler in serverRequest before call

Change-Id: I575ca777bbe13f50c15ff5fb9c58cb5730eee584
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent 4041f9cd
......@@ -5231,7 +5231,7 @@ OCStackResult OC_CALL OCDoResponse(OCEntityHandlerResponse *ehResponse)
// Normal response
// Get pointer to request info
serverRequest = (OCServerRequest *)ehResponse->requestHandle;
if(serverRequest)
if(serverRequest && serverRequest->ehResponseHandler)
{
// response handler in ocserverrequest.c. Usually HandleSingleResponse.
result = serverRequest->ehResponseHandler(ehResponse);
......
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