Module: kamailio Branch: master Commit: c9fbf6f46898dbb2a8413a1c9d824a56241f2288 URL: https://github.com/kamailio/kamailio/commit/c9fbf6f46898dbb2a8413a1c9d824a56241f2288
Author: S-P Chan <shihping.c...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-05-06T13:29:44+02:00 core: sdp - update start pointer only after len adjustment - len is adjusted first by the amount of chars consumed so far - start pointer is adjusted to start new search --- Modified: src/core/parser/sdp/sdp_helpr_funcs.c --- Diff: https://github.com/kamailio/kamailio/commit/c9fbf6f46898dbb2a8413a1c9d824a56241f2288.diff Patch: https://github.com/kamailio/kamailio/commit/c9fbf6f46898dbb2a8413a1c9d824a56241f2288.patch --- diff --git a/src/core/parser/sdp/sdp_helpr_funcs.c b/src/core/parser/sdp/sdp_helpr_funcs.c index 2e7d996bc54..0d18d787242 100644 --- a/src/core/parser/sdp/sdp_helpr_funcs.c +++ b/src/core/parser/sdp/sdp_helpr_funcs.c @@ -330,8 +330,8 @@ int extract_candidate(str *body, sdp_stream_cell_t *stream) fl = space - start; - start = space + 1; len = len - (space - start + 1); + start = space + 1; space = memchr(start, 32, len); if(space == NULL) { _______________________________________________ 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!