]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10667: [core] Segfault in crypto / srtp #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 14 Sep 2017 23:09:35 +0000 (18:09 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 14 Sep 2017 23:09:35 +0000 (18:09 -0500)
src/switch_rtp.c

index 94532da35ee76d970f3dbac8a38352aebc2489ba..7854c246344ba31bbabca0893ef69dd3af22723d 100644 (file)
@@ -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;
        }