Skip to content
Snippets Groups Projects
Commit 7e70a208 authored by Hoelscher's avatar Hoelscher
Browse files

fix for invalid reconfig parameters

parent 6d1e0ab4
No related branches found
No related tags found
No related merge requests found
......@@ -422,7 +422,9 @@ static int sctp_reconfig_response_parameter_to_string(
u32 receiver_next_tsn;
length = ntohs(parameter->length);
if (length != sizeof(struct sctp_reconfig_response_parameter)) {
// filter correct length
if (!(length == sizeof(struct sctp_reconfig_response_parameter)) &&
!(length != sizeof(struct sctp_reconfig_response_parameter) - 8)) {
fputs("invalid RECONFIG_RESPONSE parameter", s);
asprintf(error, "RECONFIG_RESPONSE parameter illegal (length=%u)",
length);
......
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