]> 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:46:11 +0000 (21:46 +0000)
FS-5472 --resolve

src/switch_rtp.c

index 2a6cbbff627df3aaee25064030fb87871cc3112f..637ce18e4e87adf8548b4cacf17c580a24cdd2ee 100644 (file)
@@ -2000,7 +2000,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session
        }
 
 #ifdef ENABLE_ZRTP
-       if (zrtp_on && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA)) {
+       if (zrtp_on && session && channel && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA)) {
                switch_rtp_t *master_rtp_session = NULL;
 
                int initiator = 0;