From: Florin Coras Date: Tue, 25 Jun 2019 22:30:12 +0000 (-0700) Subject: misc: fix sctp test with debug images X-Git-Tag: v20.01-rc0~331 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=33cd4823d67bb30d39a4bd5af50449b072c6354a;p=vpp.git misc: fix sctp test with debug images Type:fix Change-Id: I6bf938d8c71b0fac6e093278132b00fc1ab951bb Signed-off-by: Florin Coras --- diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c index e76f67b3e3e..3c2099a08fd 100644 --- a/src/vnet/sctp/sctp_output.c +++ b/src/vnet/sctp/sctp_output.c @@ -1340,7 +1340,8 @@ sctp_push_hdr_i (sctp_connection_t * sctp_conn, vlib_buffer_t * b, data_len += b->total_length_not_including_first_buffer; ASSERT (!b->total_length_not_including_first_buffer - || (b->flags & VLIB_BUFFER_NEXT_PRESENT)); + || (b->flags & VLIB_BUFFER_NEXT_PRESENT) + || !(b->flags & VLIB_BUFFER_TOTAL_LENGTH_VALID)); SCTP_ADV_DBG_OUTPUT ("b->current_length = %u, " "b->current_data = %p "