Module: kamailio
Branch: 5.7
Commit: 75aecd3f2e10509d5ed71cc5e89ae6f5c3bd0fea
URL:
https://github.com/kamailio/kamailio/commit/75aecd3f2e10509d5ed71cc5e89ae6f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-12T13:10:29+01:00
pv: remove extra len increment for some uri transformations
(cherry picked from commit 3fe9a279abecf6f367ce9fd2d4b085c41c87ad77)
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/75aecd3f2e10509d5ed71cc5e89ae6f…
Patch:
https://github.com/kamailio/kamailio/commit/75aecd3f2e10509d5ed71cc5e89ae6f…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index 5204c8fa22c..67c43d83b46 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -1595,7 +1595,6 @@ int tr_eval_uri(
sv.len++;
memcpy(_tr_buffer, sv.s, sv.len);
sv.s = _tr_buffer;
- sv.len++;
if((_tr_parsed_uri.user.len > 0) && (subtype != TR_URI_DURI)) {
memcpy(sv.s + sv.len, _tr_parsed_uri.user.s,
_tr_parsed_uri.user.len);