From febfb385aacfb55e4e464b807da55a3b1c7bec3f 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 d306da6257..4740cd5f7f 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -914,11 +914,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; }