From 14d74d75296547e8426646ea70f9d3cd279f751d Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 6 Sep 2017 09:31:09 +0200 Subject: [PATCH] fix(call): avoid crash in sal_op_set_and_clean_contact_address --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 5acc89988..459f54818 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -5020,7 +5020,7 @@ void linphone_call_set_contact_op(LinphoneCall* call) { contact=get_fixed_contact(call->core,call,call->dest_proxy); sal_op_set_and_clean_contact_address( call->op, - (SalAddress *)L_GET_PRIVATE_FROM_C_STRUCT(contact, Address)->getInternalAddress() + contact ? (SalAddress *)L_GET_PRIVATE_FROM_C_STRUCT(contact, Address)->getInternalAddress() : nullptr ); }