Commit 376fa8c2 authored by Youness Alaoui's avatar Youness Alaoui

the usernames generated for msn compatibility must be the same per foundation

parent 25440b75
...@@ -193,6 +193,14 @@ static void priv_assign_foundation (NiceAgent *agent, NiceCandidate *candidate) ...@@ -193,6 +193,14 @@ static void priv_assign_foundation (NiceAgent *agent, NiceCandidate *candidate)
* for candidates that would otherwise share the * for candidates that would otherwise share the
* foundation, but have different STUN/TURN servers */ * foundation, but have different STUN/TURN servers */
memcpy (candidate->foundation, n->foundation, NICE_CANDIDATE_MAX_FOUNDATION); memcpy (candidate->foundation, n->foundation, NICE_CANDIDATE_MAX_FOUNDATION);
if (n->username) {
g_free (candidate->username);
candidate->username = g_strdup (n->username);
}
if (n->password) {
g_free (candidate->password);
candidate->password = g_strdup (n->password);
}
return; return;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment