From 7e70a208263b397b64f1a87266cf69a743c2a5f0 Mon Sep 17 00:00:00 2001
From: Hoelscher <jens.hoelscher@fh-muenster.de>
Date: Thu, 12 May 2016 18:06:57 +0200
Subject: [PATCH] fix for invalid reconfig parameters

---
 gtests/net/packetdrill/sctp_chunk_to_string.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gtests/net/packetdrill/sctp_chunk_to_string.c b/gtests/net/packetdrill/sctp_chunk_to_string.c
index 3545fb10..8ab9d93a 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);
-- 
GitLab