Merge branch 'yr2004-patch-2' into develop

This commit is contained in:
Olaf Bergmann committed 2019-03-01 16:03:36 +01:00
commit 66c682d74c
1 file changed
+1
+1
View File
@@ -557,6 +557,7 @@ coap_new_optlist(uint16_t number,
node = coap_malloc_type(COAP_OPTLIST, sizeof(coap_optlist_t) + length);
if (node) {
memset(node, 0, (sizeof(coap_optlist_t) + length));
node->number = number;
node->length = length;
node->data = (uint8_t *)&node[1];