Commit 4e24bdd2 authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête
Browse files

agent: ignore externally set peer-reflexive candidates

All discovered peer-reflexive candidates should be added internally in
conncheck.c and should have the sockptr set. We ignore any prflx
candidates added by an external application because their NULL sockptr
could cause a crash in conn_check_send().
parent f8ee0621
......@@ -3054,6 +3054,10 @@ static gboolean priv_add_remote_candidate (
else {
/* case 2: add a new candidate */
nice_debug("Agent %p : Warning: ignoring externally set peer-reflexive candidate!", agent);
return FALSE;
candidate = nice_candidate_new (type);
component->remote_candidates = g_slist_append (component->remote_candidates,
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