misc: fix sctp test with debug images 37/20337/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 25 Jun 2019 22:30:12 +0000 (15:30 -0700)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 26 Jun 2019 02:13:13 +0000 (02:13 +0000)
Type:fix

Change-Id: I6bf938d8c71b0fac6e093278132b00fc1ab951bb
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/sctp/sctp_output.c

index e76f67b..3c2099a 100644 (file)
@@ -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 "