From d472a4cf6a6b69cb0ffce092dc376a8da7d96a54 Mon Sep 17 00:00:00 2001 From: Dmitry Verenitsin Date: Wed, 4 Nov 2026 19:43:13 +0500 Subject: [PATCH] [core] Remove the MSRP Byte-Range start assert `msrp_parse_headers()` asserted that the received Byte-Range start was above zero, so a range starting at 0 aborted the process. The payload length derived from it is already checked against the declared total and against the received data. --- src/switch_msrp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 4bac62e283..68652fc6ad 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -793,7 +793,6 @@ static switch_msrp_msg_t *msrp_parse_headers(char *start, int len, switch_msrp_m if (q > p) { *q = '\0'; msrp_msg->byte_start = atoi(p); - switch_assert(msrp_msg->byte_start > 0); p = ++q; if (*p && *p == '*') { msrp_msg->range_star = 1;