Don't crash when terminating already terminated call.

This commit is contained in:
Guillaume Beraudo 2011-10-07 14:40:15 +02:00
parent 490945660d
commit 3ef3935785

View file

@ -810,6 +810,7 @@ static void pop_auth_from_exosip() {
int sal_call_terminate(SalOp *h){
int err;
if (h == NULL) return -1;
if (h->auth_info) push_auth_to_exosip(h->auth_info);
eXosip_lock();
err=eXosip_call_terminate(h->cid,h->did);