Module: kamailio
Branch: 6.0
Commit: 21c944e4a8c04d6f1a4c66897021e01a5ea6f22b
URL: 
https://github.com/kamailio/kamailio/commit/21c944e4a8c04d6f1a4c66897021e01a5ea6f22b

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-06-05T11:33:03+02:00

core: sdp - removed invalid condition

- introduced in commit 3198b66
- GH #4229

(cherry picked from commit 444fef809c21b250402cfdbd48de65926ac6286a)

---

Modified: src/core/parser/sdp/sdp_helpr_funcs.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/21c944e4a8c04d6f1a4c66897021e01a5ea6f22b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/21c944e4a8c04d6f1a4c66897021e01a5ea6f22b.patch

---

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");

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to