Module: kamailio
Branch: master
Commit: 280eabf16a45f522655f8b49677e46c75d34024f
URL:
https://github.com/kamailio/kamailio/commit/280eabf16a45f522655f8b49677e46c…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-04-25T21:38:44+02:00
pv: clone string in all substr operations, related to GH #1937
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/280eabf16a45f522655f8b49677e46c…
Patch:
https://github.com/kamailio/kamailio/commit/280eabf16a45f522655f8b49677e46c…
---
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;