Commit b7360447 authored by Youness Alaoui's avatar Youness Alaoui
Browse files

a peer reflexive candidate must store the username and password from its...

a peer reflexive candidate must store the username and password from its parent candidate when in google mode
parent c00dc63d
......@@ -760,9 +760,15 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
g_free(decoded_local);
g_free(decoded_remote);
candidate->password = g_strdup(remote->password);
} else if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE) {
g_free (candidate->username);
g_free (candidate->password);
candidate->username = g_strdup(remote->username);
candidate->password = g_strdup(remote->password);
}
candidate->sockptr = NULL; /* not stored for remote candidates */
/* note: candidate username and password are left NULL as stream
level ufrag/password are used */
......
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