From ad13bc1a071c4cae52a0ce897551161e6f0471fa Mon Sep 17 00:00:00 2001 From: Riza Sulistyo Date: Tue, 5 Jan 2016 14:24:26 +0000 Subject: 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 --- pjsip/src/pjsua-lib/pjsua_call.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pjsip/src') 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) { -- cgit v1.2.3