From a88bc6730e67d67ea425821fe64c656dbf36603a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 14 Sep 2017 18:09:35 -0500 Subject: [PATCH] FS-10667: [core] Segfault in crypto / srtp #resolve --- src/switch_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }