01.org IOT-76
Header options had a defect introduced attempting to fix
the 'zero' header option count value. In the previous defect,
the stack would have an uninitialized header options count
when there were none. The previous fix has been removed and
initialization has been done in the correct place.
Change-Id: I99e0539f86573cfa7392921e1fdfe25dd80b303a
Signed-off-by: Erich Keane <erich.keane@intel.com>
OC_LOG_BUFFER(INFO, TAG, rcvVendorSpecificHeaderOptions[i].optionData,
rcvVendorSpecificHeaderOptions[i].optionLength);
i++;
- *numRcvVendorSpecificHeaderOptions = i;
}
+
+ *numRcvVendorSpecificHeaderOptions = i;
}
// get the payload
entityHandlerRequestLoc->obsInfo = NULL;
entityHandlerRequestLoc->newResourceUri = newResUriBuf;
- entityHandlerRequestLoc->numRcvdVendorSpecificHeaderOptions = 0;
entityHandlerRequestLoc->numSendVendorSpecificHeaderOptions = 0;
return OC_STACK_OK;
}