Module: kamailio
Branch: 5.2
Commit: 4676d3d2c1267761ac6405464459b49c809afcbf
URL:
https://github.com/kamailio/kamailio/commit/4676d3d2c1267761ac6405464459b49…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-20T14:23:55+02:00
pv: clone string in all substr operations, related to GH #1937
(cherry picked from commit 280eabf16a45f522655f8b49677e46c75d34024f)
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4676d3d2c1267761ac6405464459b49…
Patch:
https://github.com/kamailio/kamailio/commit/4676d3d2c1267761ac6405464459b49…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index efbf8e8cf2..17c6a3e204 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -614,6 +614,7 @@ int tr_eval_string(struct sip_msg *msg, tr_param_t *tp, int subtype,
}
val->rs.s += i;
val->rs.len = j;
+ tr_string_clone_result;
break;
}
i = -i;