Commit f4d5bc1f authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête
Browse files

conncheck: match transport of peer-reflexive local candidates

Another some rare case, but we may have two local candidates with
the same couple (address, port) and a different transport.
parent 298cd4b5
......@@ -3454,7 +3454,9 @@ static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *
for (j = component->local_candidates; j; j = j->next) {
NiceCandidate *cand = j->data;
if (nice_address_equal (&mapped, &cand->addr)) {
if (nice_address_equal (&mapped, &cand->addr) &&
conn_check_match_transport (remote_candidate->transport) ==
cand->transport) {
local_cand = cand;
/* The mapped address allows to look for a previously discovered
......
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