summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2016-01-05 14:24:26 +0000
committerRiza Sulistyo <riza@teluu.com>2016-01-05 14:24:26 +0000
commitad13bc1a071c4cae52a0ce897551161e6f0471fa (patch)
tree837a4f38e380cb726b897359bae3bb43b5c823dc
parent3df23d75d7987c5d585b7264a6a8567705a3d24f (diff)
Re #1882 (misc): Crash when answering call with reason field is set. Thanks to Dan Wright for the report.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5232 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua-lib/pjsua_call.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c
index c1bea3b0..86306ffd 100644
--- a/pjsip/src/pjsua-lib/pjsua_call.c
+++ b/pjsip/src/pjsua-lib/pjsua_call.c
@@ -2203,6 +2203,7 @@ PJ_DEF(pj_status_t) pjsua_call_answer2(pjsua_call_id call_id,
*answer->opt = *opt;
}
if (reason) {
+ answer->reason = PJ_POOL_ZALLOC_T(call->inv->pool_prov, pj_str_t);
pj_strdup(call->inv->pool_prov, answer->reason, reason);
}
if (msg_data) {