]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Fix crash when parsing some uncommon SDP attributes 411/head
authorAndrey Volk <andywolk@gmail.com>
Mon, 24 Feb 2020 21:36:51 +0000 (01:36 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 24 Feb 2020 21:40:52 +0000 (01:40 +0400)
src/switch_core_media.c

index c3a29353ee24a68134395890a23823f8b267dff7..14a38797b61d9e89c36ab666cb6a29c34fa14f7b 100644 (file)
@@ -5977,7 +5977,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
                                }
                        }
 
-                       t_engine->cur_payload_map = red_pmap;
+                       if (red_pmap) {
+                               t_engine->cur_payload_map = red_pmap;
+                       }
 
                        for (attr = m->m_attributes; attr; attr = attr->a_next) {
                                if (!strcasecmp(attr->a_name, "rtcp") && attr->a_value) {