]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Don't setup ZRTP without a session and channel
authorTravis Cross <tc@traviscross.com>
Sat, 25 May 2013 20:53:52 +0000 (20:53 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 25 May 2013 21:10:11 +0000 (21:10 +0000)
FS-5472 --resolve

src/switch_rtp.c

index 3aa2696ae9bfa33301638c12833c0d6487e84d8c..f4bcb476e7d9345d74f650603d82eb93fc5a2709 100644 (file)
@@ -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;