Browse Source

path: fix for second path insert pointer

Daniel-Constantin Mierla 8 years ago
parent
commit
a6d405b16b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/path/path.c

+ 1 - 1
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;
 	}