Commit 6075e8ee authored by Simon Morlat's avatar Simon Morlat
Browse files

fix crash

parent fcb8e72a
...@@ -1112,6 +1112,13 @@ static void call_accepted(Sal *sal, eXosip_event_t *ev){ ...@@ -1112,6 +1112,13 @@ static void call_accepted(Sal *sal, eXosip_event_t *ev){
if (op->base.local_media) sdp_process(op); if (op->base.local_media) sdp_process(op);
} }
eXosip_call_build_ack(ev->did,&msg); eXosip_call_build_ack(ev->did,&msg);
if (msg==NULL) {
ms_warning("This call has been already terminated.");
eXosip_lock();
eXosip_call_terminate(ev->cid,ev->did);
eXosip_unlock();
return ;
}
contact=sal_op_get_contact(op); contact=sal_op_get_contact(op);
if (contact) { if (contact) {
_osip_list_set_empty(&msg->contacts,(void (*)(void*))osip_contact_free); _osip_list_set_empty(&msg->contacts,(void (*)(void*))osip_contact_free);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment