mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 19:48:07 +00:00
fix crash when call is null
This commit is contained in:
parent
2efa954ae7
commit
32f65739c0
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ static bool_t linphone_call_matches_event(LinphoneCall *call, eXosip_event_t *ev
|
|||
static void linphone_call_proceeding(LinphoneCore *lc, eXosip_event_t *ev){
|
||||
if (lc->call==NULL || (lc->call->cid!=-1 && !linphone_call_matches_event(lc->call,ev)) ) {
|
||||
ms_warning("This call has been canceled: call=%p, call->cid=%i, ev->cid=%i",
|
||||
lc->call,lc->call->cid,ev->cid);
|
||||
lc->call,lc->call?lc->call->cid:-1,ev->cid);
|
||||
eXosip_lock();
|
||||
eXosip_call_terminate(ev->cid,ev->did);
|
||||
eXosip_unlock();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue