[sr-dev] git:master:a6d405b1: path: fix for second path insert pointer

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 27 16:19:47 CEST 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-06-27T15:53:20+02:00

path: fix for second path insert pointer

---

Modified: src/modules/path/path.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a6d405b16ba745497ba9890c60541ffdb6cadeab.diff
Patch: https://github.com/kamailio/kamailio/commit/a6d405b16ba745497ba9890c60541ffdb6cadeab.patch

---

diff --git a/src/modules/path/path.c b/src/modules/path/path.c
index ecfff280eb..274e6cfc7c 100644
--- a/src/modules/path/path.c
+++ b/src/modules/path/path.c
@@ -183,7 +183,7 @@ static int prepend_path(sip_msg_t* _m, str *user, path_param_t param,
 		if (!l) goto out1;
 		dp = path_strzdup(suffix, cp - suffix);
 		if(dp==NULL) goto out1;
-		l = insert_new_lump_before(l, suffix, cp - suffix, 0);
+		l = insert_new_lump_before(l, dp, cp - suffix, 0);
 		if (!l) goto out1;
 	}
 




More information about the sr-dev mailing list