From 2048bac55a33458b4c0a85c9b79f5679045ae252 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 15 Mar 2013 16:02:35 +0100 Subject: [PATCH] Do not create ICE check list for non-active streams. It may lead to some crashes if a check list exists for a non-active stream. --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index d101bb2c..35a58e20 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -876,7 +876,7 @@ void linphone_core_update_ice_from_remote_media_description(LinphoneCall *call, for (i = 0; i < md->n_total_streams; i++) { const SalStreamDescription *stream = &md->streams[i]; IceCheckList *cl = ice_session_check_list(call->ice_session, i); - if (cl == NULL) { + if ((cl == NULL) && (i < md->n_active_streams)) { cl = ice_check_list_new(); ice_session_add_check_list(call->ice_session, cl); switch (stream->type) { -- 2.39.2