From: Andrey Volk Date: Mon, 24 Feb 2020 21:36:51 +0000 (+0400) Subject: [Core] Fix crash when parsing some uncommon SDP attributes X-Git-Tag: v1.10.3^2~128^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F411%2Fhead;p=thirdparty%2Ffreeswitch.git [Core] Fix crash when parsing some uncommon SDP attributes --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index c3a29353ee..14a38797b6 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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) {