I discovered a crash in simpleserver C++ that when being debugged,
it would crash on the observation AFTER the client had cancelled.
The cause was that the NumberRecvHeaderOptions sent was an invalid
character rather than 0! This fix repairs the issue by ensuring that
the values are initialized correctly.
Change-Id: I35a0a0aa45d356208f1cd563f3558997665881db
Signed-off-by: Erich Keane <erich.keane@intel.com>
entityHandlerRequestLoc->obsInfo = NULL;
entityHandlerRequestLoc->newResourceUri = newResUriBuf;
+
+ entityHandlerRequestLoc->numRcvdVendorSpecificHeaderOptions = 0;
+ entityHandlerRequestLoc->numSendVendorSpecificHeaderOptions = 0;
return OC_STACK_OK;
}