Merge pull request #411 from signalwire/sdp_crash
[Core] Fix crash when parsing some uncommon SDP attributes
This commit is contained in:
commit
cf0e81c758
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue