Commit 059a0e33 authored by Olivier Crête's avatar Olivier Crête

conncheck: fix TCP active relay handling

TCP active relay candidates use UDP TURN for their underlying socket.
Since 0a6c779f, socket->fileno of UDP TURN sockets is always NULL,
which caused a wrong code path to be chosen in conn_check_send().

We have to update the if-expression accordingly.

Maniphest Tasks: T7442
Differential Revision: https://phabricator.freedesktop.org/D1017
parent fc4d3aab
...@@ -1995,6 +1995,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair) ...@@ -1995,6 +1995,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair)
* by connecting to the peer. The new socket is stored in the candidate * by connecting to the peer. The new socket is stored in the candidate
* check pair, until we discover a new local peer reflexive */ * check pair, until we discover a new local peer reflexive */
if (pair->sockptr->fileno == NULL && if (pair->sockptr->fileno == NULL &&
pair->sockptr->type != NICE_SOCKET_TYPE_UDP_TURN &&
pair->local->transport == NICE_CANDIDATE_TRANSPORT_TCP_ACTIVE) { pair->local->transport == NICE_CANDIDATE_TRANSPORT_TCP_ACTIVE) {
NiceStream *stream2 = NULL; NiceStream *stream2 = NULL;
NiceComponent *component2 = NULL; NiceComponent *component2 = NULL;
......
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