From: Ghislain MARY Date: Fri, 15 Mar 2013 15:02:35 +0000 (+0100) Subject: Do not create ICE check list for non-active streams. X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=2048bac55a33458b4c0a85c9b79f5679045ae252 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. --- 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) {