[Nice] [nice/master] a peer reflexive candidate must store the username and password from its parent candidate when in google mode
Youness Alaoui
youness.alaoui at collabora.co.uk
Wed Nov 12 12:42:37 PST 2008
---
agent/discovery.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/agent/discovery.c b/agent/discovery.c
index d7a119b..5a15787 100644
--- a/agent/discovery.c
+++ b/agent/discovery.c
@@ -761,8 +761,14 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
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 */
--
1.5.6.5
More information about the Nice
mailing list