From 3ef3935785c1618bb5b537c52c6c61b6e19050bf Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Fri, 7 Oct 2011 14:40:15 +0200 Subject: [PATCH] Don't crash when terminating already terminated call. --- coreapi/sal_eXosip2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 5b9500509..03fec5b47 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -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);