From: Simon Morlat Date: Thu, 21 Mar 2013 10:13:42 +0000 (+0100) Subject: fix crash related to zrtp hello hash when adding video X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=c113bd8c332d7473493f17c27d7cba0817a82592 fix crash related to zrtp hello hash when adding video --- diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index e9640701..2770d4ad 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -271,7 +271,7 @@ void linphone_call_make_local_media_description(LinphoneCore *lc, LinphoneCall * l=make_codec_list(lc,lc->codecs_conf.video_codecs,0,NULL,-1); md->streams[1].payloads=l; // if ZRTP is enabled, put the hello hash into the audiostream's desc - if (call->videostream->ms.zrtp_context!=NULL){ + if (call->videostream && call->videostream->ms.zrtp_context!=NULL){ ortp_zrtp_get_hello_hash(call->videostream->ms.zrtp_context, md->streams[1].zrtp_hello_hash, sizeof(md->streams[1].zrtp_hello_hash));