[sr-dev] git:master:280eabf1: pv: clone string in all substr operations, related to GH #1937

Henning Westerholt hw at skalatan.de
Thu Apr 25 21:40:28 CEST 2019


Module: kamailio
Branch: master
Commit: 280eabf16a45f522655f8b49677e46c75d34024f
URL: https://github.com/kamailio/kamailio/commit/280eabf16a45f522655f8b49677e46c75d34024f

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at 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/280eabf16a45f522655f8b49677e46c75d34024f.diff
Patch: https://github.com/kamailio/kamailio/commit/280eabf16a45f522655f8b49677e46c75d34024f.patch

---

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;




More information about the sr-dev mailing list