FS-10667: [core] Segfault in crypto / srtp #resolve

This commit is contained in:
Anthony Minessale 2017-09-14 18:09:35 -05:00
parent 85348331f3
commit a88bc6730e
1 changed files with 2 additions and 2 deletions

View File

@ -913,11 +913,11 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
return; return;
} }
switch_mutex_lock(rtp_session->ice_mutex);
READ_INC(rtp_session); READ_INC(rtp_session);
WRITE_INC(rtp_session); WRITE_INC(rtp_session);
switch_mutex_lock(rtp_session->ice_mutex);
if (!switch_rtp_ready(rtp_session)) { if (!switch_rtp_ready(rtp_session)) {
goto end; goto end;
} }