]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8252 #resolve [Crash in rtp stack on dtls pointer]
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 30 Sep 2015 17:53:47 +0000 (12:53 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 30 Sep 2015 17:53:47 +0000 (12:53 -0500)
src/switch_rtp.c

index bc3ca09fc99c27f888522840b68d19037d98d029..7573aa16c6173329201fc28a8455457c460ce21b 100644 (file)
@@ -1184,7 +1184,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
                                ice->last_ok = now;
                                rtp_session->wrong_addrs = 0;
                        } else {
-                               if ((rtp_session->dtls->state != DS_READY || !ice->ready || !ice->rready)) {
+                               if (((rtp_session->dtls && rtp_session->dtls->state != DS_READY) || !ice->ready || !ice->rready)) {
                                        do_adj++;
                                } else if (rtp_session->wrong_addrs > 5 || elapsed >= 3000) {
                                        do_adj++;