Module: kamailio Branch: master Commit: 722a79a9ba8ca2608e699ec14684ce004ae10d60 URL: https://github.com/kamailio/kamailio/commit/722a79a9ba8ca2608e699ec14684ce004ae10d60
Author: Rick Barenthin <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2023-08-15T23:06:20+02:00 core: cfg.y typo in parsing XAVPVIAFIELDS In the XAVPVIAFIELDS block there is the string written to the wrong variable. The string is stored in _ksr_xavp_via_params.s but the lenght is stored in _ksr_xavp_via_fields.len. This breaks XAVPVIAPARAMS and XAVPVIAFIELDS. --- Modified: src/core/cfg.y --- Diff: https://github.com/kamailio/kamailio/commit/722a79a9ba8ca2608e699ec14684ce004ae10d60.diff Patch: https://github.com/kamailio/kamailio/commit/722a79a9ba8ca2608e699ec14684ce004ae10d60.patch --- diff --git a/src/core/cfg.y b/src/core/cfg.y index b93638eaa40..eef8e6acd28 100644 --- a/src/core/cfg.y +++ b/src/core/cfg.y @@ -886,7 +886,7 @@ assign_stm: _ksr_xavp_via_params.len=strlen($3); } | XAVPVIAPARAMS EQUAL error { yyerror("string value expected"); } - | XAVPVIAFIELDS EQUAL STRING { _ksr_xavp_via_params.s=$3; + | XAVPVIAFIELDS EQUAL STRING { _ksr_xavp_via_fields.s=$3; _ksr_xavp_via_fields.len=strlen($3); } | XAVPVIAFIELDS EQUAL error { yyerror("string value expected"); } _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to [email protected]
