mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-26 03:38:47 +00:00
[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.
This commit is contained in:
1 parent
eff3cc6f5e
commit
d472a4cf6a
1 file changed
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user