summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-06-25 15:30:12 -0700
committerDave Wallace <dwallacelf@gmail.com>2019-06-26 02:13:13 +0000
commit33cd4823d67bb30d39a4bd5af50449b072c6354a (patch)
treec10cf3d45c3cefc3aec503cb63be26802761bbb9 /src/vnet
parent9f1b3ff308ff823f95f694342ef65c06686f5bf8 (diff)
misc: fix sctp test with debug images
Type:fix Change-Id: I6bf938d8c71b0fac6e093278132b00fc1ab951bb Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/sctp/sctp_output.c3
1 files changed, 2 insertions, 1 deletions
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 "