Browse code

path: fix for second path insert pointer

Daniel-Constantin Mierla authored on 27/06/2017 13:53:20
Showing 1 changed files
... ...
@@ -183,7 +183,7 @@ static int prepend_path(sip_msg_t* _m, str *user, path_param_t param,
183 183
 		if (!l) goto out1;
184 184
 		dp = path_strzdup(suffix, cp - suffix);
185 185
 		if(dp==NULL) goto out1;
186
-		l = insert_new_lump_before(l, suffix, cp - suffix, 0);
186
+		l = insert_new_lump_before(l, dp, cp - suffix, 0);
187 187
 		if (!l) goto out1;
188 188
 	}
189 189