fix crash when call is null

This commit is contained in:
Jehan Monnier 2010-01-27 17:35:53 +01:00
parent 2efa954ae7
commit 32f65739c0

View file

@ -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();