mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-11 15:07:07 +00:00
[Core] Fix crash when parsing some uncommon SDP attributes
This commit is contained in:
parent
60fa01976f
commit
f9cafeb7a8
@ -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…
x
Reference in New Issue
Block a user