From: Anthony Minessale Date: Thu, 14 Sep 2017 23:09:35 +0000 (-0500) Subject: FS-10667: [core] Segfault in crypto / srtp #resolve X-Git-Tag: v1.8.0~268 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a88bc6730e67d67ea425821fe64c656dbf36603a;p=thirdparty%2Ffreeswitch.git FS-10667: [core] Segfault in crypto / srtp #resolve --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 94532da35e..7854c24634 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -913,11 +913,11 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d return; } - switch_mutex_lock(rtp_session->ice_mutex); - READ_INC(rtp_session); WRITE_INC(rtp_session); + switch_mutex_lock(rtp_session->ice_mutex); + if (!switch_rtp_ready(rtp_session)) { goto end; }