Module: kamailio
Branch: 6.1
Commit: b50cf63413edeafe750c724838ac13cf109bab1a
URL: 
https://github.com/kamailio/kamailio/commit/b50cf63413edeafe750c724838ac13cf109bab1a

Author: Henning Westerholt <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2026-06-24T07:25:02Z

core: use correct length for ;ttl parameter parsing

(cherry picked from commit 007f866b1cd068d141395ba7a1002ca6cef15157)

---

Modified: src/core/parser/parse_param.c

---

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

---

diff --git a/src/core/parser/parse_param.c b/src/core/parser/parse_param.c
index 4ba15a2ad51..4a362b31995 100644
--- a/src/core/parser/parse_param.c
+++ b/src/core/parser/parse_param.c
@@ -209,7 +209,7 @@ static inline void parse_uri_class(param_hooks_t *_h, 
param_t *_p)
                                        && (!strncasecmp(_p->name.s + 1, 
"ransport", 8))) {
                                _p->type = P_TRANSPORT;
                                _h->uri.transport = _p;
-                       } else if(_p->name.len == 2) {
+                       } else if(_p->name.len == 3) {
                                if(((_p->name.s[1] == 't') || (_p->name.s[1] == 
'T'))
                                                && ((_p->name.s[2] == 'l') || 
(_p->name.s[2] == 'L'))) {
                                        _p->type = P_TTL;

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to