summaryrefslogtreecommitdiffstats
path: root/src/plugins/srtp/srtp.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-09-09 08:37:59 -0700
committerDave Barach <openvpp@barachs.net>2021-09-09 19:03:27 +0000
commit2abbdecc9b27f3c2c3aafe0b58b34fad8063b461 (patch)
treed00302e03abdb6e0b79445ba510fc9d1c5eeca9a /src/plugins/srtp/srtp.c
parentf059a3452c285ec57a75c7b1ede5052244be4e5d (diff)
srtp: fix header len assert
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie7b04b11987caadde0942483f171a318ce852228
Diffstat (limited to 'src/plugins/srtp/srtp.c')
-rw-r--r--src/plugins/srtp/srtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/srtp/srtp.c b/src/plugins/srtp/srtp.c
index 58a35c31606..9e5c367b1a7 100644
--- a/src/plugins/srtp/srtp.c
+++ b/src/plugins/srtp/srtp.c
@@ -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;