[Core] Fix crash when parsing some uncommon SDP attributes

This commit is contained in:
Andrey Volk 2020-02-25 01:36:51 +04:00
parent 60fa01976f
commit f9cafeb7a8
1 changed files with 3 additions and 1 deletions

View 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) {