]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
chrome now requires longer ice password
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 29 May 2014 19:46:31 +0000 (15:46 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 29 May 2014 19:46:31 +0000 (15:46 -0400)
src/switch_core_media.c

index 6c4aab089d1f6606dc458af2a1b43f18ccaa47e3..2c4da7c4cd639e410ebcd0df63a3e06ed634c3ae 100644 (file)
@@ -4638,7 +4638,8 @@ static void gen_ice(switch_core_session_t *session, switch_media_type_t type, co
        }
 
        if (!engine->ice_out.pwd) {
-               switch_stun_random_string(tmp, 16, NULL);
+               switch_stun_random_string(tmp, 24, NULL);
+               tmp[24] = '\0';
                engine->ice_out.pwd = switch_core_session_strdup(session, tmp); 
        }