Skip to content

Commit

Permalink
core: parse sdp - removed redundant check
Browse files Browse the repository at this point in the history
(cherry picked from commit 355c021)
  • Loading branch information
miconda committed May 5, 2022
1 parent fc454a5 commit afefd47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/parser/sdp/sdp.c
Expand Up @@ -650,8 +650,7 @@ static int parse_mixed_content(str *mixed_body, str delimiter, sdp_info_t* _sdp)
return -1;
}
d2p = find_next_sdp_line_delimiter(d1p, bodylimit, delimiter, bodylimit);
if((d1p + delimiter.len + 2 > bodylimit)
|| (d2p - d1p < delimiter.len + 2)) {
if(d2p - d1p < delimiter.len + 2) {
LM_ERR("invalid format [%.*s]\n", (int)(d2p-d1p), d1p);
return -1;
}
Expand Down

0 comments on commit afefd47

Please sign in to comment.