srtp: fix header len assert

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie7b04b11987caadde0942483f171a318ce852228
This commit is contained in:
Florin Coras
2021-09-09 08:37:59 -07:00
committed by Dave Barach
parent f059a3452c
commit 2abbdecc9b

View File

@@ -243,7 +243,7 @@ srtp_ctx_write (srtp_tc_t *ctx, session_t *app_session,
{
/* Peeking only pre-header dgram because the session is connected */
rv = svm_fifo_peek (app_session->tx_fifo, 0, sizeof (hdr), (u8 *) &hdr);
ASSERT (rv == sizeof (hdr) && hdr.data_length < vec_len (buf));
ASSERT (rv == sizeof (hdr) && hdr.data_length < 2000);
ASSERT (to_deq >= hdr.data_length + SESSION_CONN_HDR_LEN);
dgram_sz = hdr.data_length + SESSION_CONN_HDR_LEN;