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().
else {
/* case 2: add a new candidate */
+ if (type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) {
+ 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,
candidate);