[sr-dev] git:master:27026291: uac: increase the buffer for within dialog rr param

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 3 09:21:12 CET 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-12-03T09:20:24+01:00

uac: increase the buffer for within dialog rr param

- following the previous commit

---

Modified: modules/uac/replace.c

---

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

---

diff --git a/modules/uac/replace.c b/modules/uac/replace.c
index 6d1d1f7..f0bd471 100644
--- a/modules/uac/replace.c
+++ b/modules/uac/replace.c
@@ -541,7 +541,7 @@ int restore_uri( struct sip_msg *msg, str *rr_param, str* restore_avp, int check
 		goto failed;
 	}
 
-	add_to_rr.s = pkg_malloc(2+rr_param->len+param_val.len);
+	add_to_rr.s = pkg_malloc(3+rr_param->len+param_val.len);
 	if ( add_to_rr.s==0 ) {
 		add_to_rr.len = 0;
 		LM_ERR("no more pkg mem\n");
@@ -550,7 +550,7 @@ int restore_uri( struct sip_msg *msg, str *rr_param, str* restore_avp, int check
 	add_to_rr.len = sprintf(add_to_rr.s, ";%.*s=%.*s", rr_param->len,rr_param->s,param_val.len,param_val.s);
 
 	if ( uac_rrb.add_rr_param(msg, &add_to_rr)!=0 ) {
-		LM_ERR("add_RR_param failed\n");
+		LM_ERR("add rr param failed\n");
 		goto failed;
 	}
 	pkg_free(add_to_rr.s);




More information about the sr-dev mailing list