diff --git a/gtests/net/packetdrill/sctp_chunk_to_string.c b/gtests/net/packetdrill/sctp_chunk_to_string.c index 3545fb1063bb0893e1bdb41654ac5face7d93544..8ab9d93acb2128d68c7c80c35f767a04e6e161ff 100644 --- a/gtests/net/packetdrill/sctp_chunk_to_string.c +++ b/gtests/net/packetdrill/sctp_chunk_to_string.c @@ -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);