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

Fix CID 187201.

parent 44c736dc
No related branches found
No related tags found
No related merge requests found
......@@ -1048,10 +1048,12 @@ sctp_heartbeat_ack_chunk_new(s64 flgs, struct sctp_parameter_list_item *info)
chunk->flags = (u8)flgs;
}
chunk->length = htons(chunk_length);
memcpy(chunk->value, info->parameter, info->length);
memset(chunk->value + info->length, 0, padding_length);
free(info->parameter);
free(info);
if (info != NULL) {
memcpy(chunk->value, info->parameter, info->length);
memset(chunk->value + info->length, 0, padding_length);
free(info->parameter);
free(info);
}
return sctp_chunk_list_item_new((struct sctp_chunk *)chunk,
chunk_length + padding_length,
flags, sctp_parameter_list_new(),
......
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