Module: kamailio
Branch: master
Commit: 3fe9a279abecf6f367ce9fd2d4b085c41c87ad77
URL:
https://github.com/kamailio/kamailio/commit/3fe9a279abecf6f367ce9fd2d4b085c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-12T13:09:54+01:00
pv: remove extra len increment for some uri transformations
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3fe9a279abecf6f367ce9fd2d4b085c…
Patch:
https://github.com/kamailio/kamailio/commit/3fe9a279abecf6f367ce9fd2d4b085c…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index 2c60cc7e656..3c51be15f74 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);