From 0b8dd545355d480a08634f3c726f5e2ad9807f36 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 17 Sep 2015 17:10:02 +0200 Subject: [PATCH] Fix crash in test Call without SDP --- coreapi/linphonecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index dbf8ab47b..200304a8b 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1178,7 +1178,9 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro sal_op_cnx_ip_to_0000_if_sendonly_enable(op,lp_config_get_default_int(lc->config,"sip","cnx_ip_to_0000_if_sendonly_enabled",0)); md = sal_call_get_remote_media_description(op); - linphone_call_compute_streams_indexes(call, md); + if (md) { + linphone_call_compute_streams_indexes(call, md); + } if (lc->sip_conf.ping_with_options){ #ifdef BUILD_UPNP