Module: kamailio
Branch: master
Commit: a6d405b16ba745497ba9890c60541ffdb6cadeab
URL:
https://github.com/kamailio/kamailio/commit/a6d405b16ba745497ba9890c60541ff…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/a6d405b16ba745497ba9890c60541ff…
Patch:
https://github.com/kamailio/kamailio/commit/a6d405b16ba745497ba9890c60541ff…
---
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;
}