conncheck: fix TCP active relay handling
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 27 May 2016 18:06:24 +0000 (14:06 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 27 May 2016 18:06:28 +0000 (14:06 -0400)
commit059a0e33c973a54c44f7c4fd1e766155f6078f80
treeb4e5bba1d0095e993a843c554a58b4c2475457b8
parentfc4d3aab5392f855dbda7ad0225bf0ad4e5fafb6
conncheck: fix TCP active relay handling

TCP active relay candidates use UDP TURN for their underlying socket.
Since 0a6c779f1f, 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
agent/conncheck.c