Commit 8afb297c authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Use addr instead of base_addr for assigning remote foundation for remote...

Use addr instead of base_addr for assigning remote foundation for remote peer-reflexive candidates. addr will always be defined but base_addr won't always be
parent b63a5a87
......@@ -361,7 +361,7 @@ static void priv_assign_remote_foundation (NiceAgent *agent, NiceCandidate *cand
for (k = c->remote_candidates; k; k = k->next) {
NiceCandidate *n = k->data;
NiceAddress temp = n->base_addr;
NiceAddress temp = n->addr;
/* note: candidate must not on the remote candidate list */
g_assert (candidate != n);
......@@ -372,7 +372,7 @@ static void priv_assign_remote_foundation (NiceAgent *agent, NiceCandidate *cand
if (candidate->type == n->type &&
candidate->stream_id == n->stream_id &&
nice_address_equal (&candidate->base_addr, &temp)) {
nice_address_equal (&candidate->addr, &temp)) {
/* note: currently only one STUN/TURN server per stream at a
* time is supported, so there is no need to check
* for candidates that would otherwise share the
......
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