[sr-dev] git:master:355c0210: core: parse sdp - removed redundant check
Daniel-Constantin Mierla
miconda at gmail.com
Fri Mar 11 21:41:31 CET 2022
Module: kamailio
Branch: master
Commit: 355c02106c95400c44833a89aeea68c61ba2f200
URL: https://github.com/kamailio/kamailio/commit/355c02106c95400c44833a89aeea68c61ba2f200
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-03-11T21:41:06+01:00
core: parse sdp - removed redundant check
---
Modified: src/core/parser/sdp/sdp.c
---
Diff: https://github.com/kamailio/kamailio/commit/355c02106c95400c44833a89aeea68c61ba2f200.diff
Patch: https://github.com/kamailio/kamailio/commit/355c02106c95400c44833a89aeea68c61ba2f200.patch
---
diff --git a/src/core/parser/sdp/sdp.c b/src/core/parser/sdp/sdp.c
index d81413a0a5..404a20fee8 100644
--- a/src/core/parser/sdp/sdp.c
+++ b/src/core/parser/sdp/sdp.c
@@ -685,8 +685,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;
}
More information about the sr-dev
mailing list