Skip to content
Snippets Groups Projects
Commit 176b5623 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix Coverity ID 323326.

parent 3fc5540b
No related branches found
No related tags found
No related merge requests found
......@@ -2088,8 +2088,8 @@ sctp_supported_extensions_parameter_new(struct sctp_byte_list *list)
parameter->chunk_type[i] = item->byte;
}
assert((i == list->nr_entries) && (item == NULL));
sctp_byte_list_free(list);
memset(parameter->chunk_type + list->nr_entries, 0, padding_length);
sctp_byte_list_free(list);
}
return sctp_parameter_list_item_new((struct sctp_parameter *)parameter,
parameter_length, flags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment