Update ocserver sample to work with versioning.
Change-Id: Idae7063273a41b7a522719d830d464e7e0490eb9
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20493
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
// Check if the option header has already existed before adding it in.
uint8_t optionData[MAX_HEADER_OPTION_DATA_LENGTH];
size_t optionDataSize = sizeof(optionData);
+
+ actualDataSize = 0;
OCGetHeaderOption(response.sendVendorSpecificHeaderOptions,
response.numSendVendorSpecificHeaderOptions,
2248,
optionDataSize2);
}
+ actualDataSize = 0;
OCGetHeaderOption(response.sendVendorSpecificHeaderOptions,
response.numSendVendorSpecificHeaderOptions,
2600,