From: Travis Cross Date: Sat, 25 May 2013 20:53:52 +0000 (+0000) Subject: Don't setup ZRTP without a session and channel X-Git-Tag: v1.4.1~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=012003b5ff7c6dfcad75c122f51cc73de1e0778c;p=thirdparty%2Ffreeswitch.git Don't setup ZRTP without a session and channel FS-5472 --resolve --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 3aa2696ae9..f4bcb476e7 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2674,7 +2674,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session } #ifdef ENABLE_ZRTP - if (zrtp_on && !rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA]) { + if (zrtp_on && session && channel && !rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA]) { switch_rtp_t *master_rtp_session = NULL; int initiator = 0;