summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-11-16 07:01:25 +0000
committerBenny Prijono <bennylp@teluu.com>2010-11-16 07:01:25 +0000
commitd74ac83362644f2b7af8b2bf7797defd893e2d53 (patch)
tree4b9ac6aff728cbb2421c03e57a3fcf6efabba006 /pjsip
parent47f92e3cced096366b347bfaaef5460564358034 (diff)
Re #1020: fixed pjsua_acc.c, wrong allocation length for outbound contact.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3368 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_acc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c
index b434bb7c..6ebd3bd9 100644
--- a/pjsip/src/pjsua-lib/pjsua_acc.c
+++ b/pjsip/src/pjsua-lib/pjsua_acc.c
@@ -1066,7 +1066,7 @@ done:
acc->rfc5626_status = OUTBOUND_WANTED;
len = acc->contact.slen + acc->rfc5626_instprm.slen +
acc->rfc5626_regprm.slen;
- reg_contact.ptr = (char*) pj_pool_alloc(acc->pool, reg_contact.slen);
+ reg_contact.ptr = (char*) pj_pool_alloc(acc->pool, len);
pj_strcpy(&reg_contact, &acc->contact);
pj_strcat(&reg_contact, &acc->rfc5626_regprm);