Skip to content

Commit cf0e81c

Browse files
authored
Merge pull request signalwire#411 from signalwire/sdp_crash
[Core] Fix crash when parsing some uncommon SDP attributes
2 parents 60fa019 + f9cafeb commit cf0e81c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/switch_core_media.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5977,7 +5977,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
59775977
}
59785978
}
59795979

5980-
t_engine->cur_payload_map = red_pmap;
5980+
if (red_pmap) {
5981+
t_engine->cur_payload_map = red_pmap;
5982+
}
59815983

59825984
for (attr = m->m_attributes; attr; attr = attr->a_next) {
59835985
if (!strcasecmp(attr->a_name, "rtcp") && attr->a_value) {

0 commit comments

Comments
 (0)