Module: kamailio Branch: master Commit: 007f866b1cd068d141395ba7a1002ca6cef15157 URL: https://github.com/kamailio/kamailio/commit/007f866b1cd068d141395ba7a1002ca6cef15157
Author: Henning Westerholt <[email protected]> Committer: Henning Westerholt <[email protected]> Date: 2026-06-23T12:39:39Z core: use correct length for ;ttl parameter parsing --- Modified: src/core/parser/parse_param.c --- Diff: https://github.com/kamailio/kamailio/commit/007f866b1cd068d141395ba7a1002ca6cef15157.diff Patch: https://github.com/kamailio/kamailio/commit/007f866b1cd068d141395ba7a1002ca6cef15157.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!
