From e132ecc1810dc5b4e22ce7756e2db4aeac655d82 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 15 Dec 2016 14:42:12 +0100 Subject: [PATCH] fix crash --- coreapi/callbacks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index 95d5a3d30..5557f1962 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -855,13 +855,15 @@ static void call_failure(SalOp *op){ char *msg600=_("User does not want to be disturbed."); char *msg603=_("Call declined."); const char *msg=ei->full_string; + LinphoneCall *referer; LinphoneCall *call=(LinphoneCall*)sal_op_get_user_pointer(op); - LinphoneCall *referer=call->referer; - + if (call==NULL){ ms_warning("Call faillure reported on already terminated call."); return ; } + + referer=call->referer; linphone_core_notify_show_interface(lc); switch(ei->reason){