Commit 49598799 authored by Jakub Adam's avatar Jakub Adam Committed by Olivier Crête

component: accept TURN in nice_component_verify_remote_candidate()

When TURN is in operation, agent_recv_message_unlocked() may receive from
NiceSocket with type = NICE_SOCKET_TYPE_UDP_TURN. Such messages were always
dropped due to failed nice_component_verify_remote_candidate().
Differential Revision: https://phabricator.freedesktop.org/D1727
parent 090d3dba
Pipeline #1656 passed with stage
in 1 minute
......@@ -1510,7 +1510,8 @@ nice_component_verify_remote_candidate (NiceComponent *component,
(cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_ACTIVE ||
cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_PASSIVE ||
cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_SO)) ||
cand->transport == NICE_CANDIDATE_TRANSPORT_UDP) &&
cand->transport == NICE_CANDIDATE_TRANSPORT_UDP ||
nicesock->type == NICE_SOCKET_TYPE_UDP_TURN) &&
nice_address_equal (address, &cand->addr)) {
/* fast return if it's already the first */
if (item == component->valid_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