Module: kamailio Branch: master Commit: 444fef809c21b250402cfdbd48de65926ac6286a URL: https://github.com/kamailio/kamailio/commit/444fef809c21b250402cfdbd48de6592...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-05-05T16:48:21+02:00
core: sdp - removed invalid condition
- introduced in commit 3198b66 - GH #4229
---
Modified: src/core/parser/sdp/sdp_helpr_funcs.c
---
Diff: https://github.com/kamailio/kamailio/commit/444fef809c21b250402cfdbd48de6592... Patch: https://github.com/kamailio/kamailio/commit/444fef809c21b250402cfdbd48de6592...
---
diff --git a/src/core/parser/sdp/sdp_helpr_funcs.c b/src/core/parser/sdp/sdp_helpr_funcs.c index 5e9b3f121ab..2e7d996bc54 100644 --- a/src/core/parser/sdp/sdp_helpr_funcs.c +++ b/src/core/parser/sdp/sdp_helpr_funcs.c @@ -332,10 +332,7 @@ int extract_candidate(str *body, sdp_stream_cell_t *stream)
start = space + 1; len = len - (space - start + 1); - if(start + len > body->s + body->len) { - LM_ERR("no component in `a=candidate'\n"); - return -1; - } + space = memchr(start, 32, len); if(space == NULL) { LM_ERR("no component in `a=candidate'\n");