diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-07-05 07:02:50 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-07-05 07:02:50 +0000 |
commit | e914af2a02fbace89608ca2a72ea990ec8fbb1f5 (patch) | |
tree | fbddddb151c85ac1eac25be8dd451b99e7261723 /pjsip | |
parent | 55420457103696bd66d17027d9c4969d8f8d24c6 (diff) |
Re #1548: Crash due to racing condition in timer when call is disconnected quickly (thanks Joshua Colp for the report!)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4196 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_media.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index 8e7db5ac..1f721c8b 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -518,6 +518,9 @@ static void med_tp_timer_cb(void *user_data) pjsua_call *call = NULL; pjsip_dialog *dlg = NULL; + if (call_med->call == NULL) + return; + acquire_call("med_tp_timer_cb", call_med->call->index, &call, &dlg); call_med->tp_ready = call_med->tp_result; |