diff options
author | Fabrice Bellet <fabrice@bellet.info> | 2019-07-03 22:09:03 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2019-07-11 19:03:03 +0000 |
commit | d8d2c0417a89efa238d49073d966461ba48bdaeb (patch) | |
tree | 471f78525fe7d123f45d26f5233b503424e97c41 | |
parent | 0b70e024faa1fa712a7f8f15b602f10ae7348f19 (diff) | |
download | libnice-d8d2c0417a89efa238d49073d966461ba48bdaeb.tar.gz |
agent: fix condition for turn-tcp discovery creation
We support turn-tcp in oc2007 compatibility only and when the
host candidate transport is compatible, ie when reliable_tcp is true.
-rw-r--r-- | agent/agent.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/agent/agent.c b/agent/agent.c index d383e8d..d61376a 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -2637,12 +2637,9 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent, /* TURN-TCP is currently unsupport unless it's OC2007 compatibliity */ /* TODO: Add support for TURN-TCP */ - if (((agent->compatibility == NICE_COMPATIBILITY_OC2007 || - agent->compatibility == NICE_COMPATIBILITY_OC2007R2) && - reliable_tcp == FALSE) || - (!(agent->compatibility == NICE_COMPATIBILITY_OC2007 || - agent->compatibility == NICE_COMPATIBILITY_OC2007R2) && - reliable_tcp == TRUE)) { + if ((agent->compatibility != NICE_COMPATIBILITY_OC2007 && + agent->compatibility != NICE_COMPATIBILITY_OC2007R2) || + reliable_tcp == FALSE) { g_slice_free (CandidateDiscovery, cdisco); return; } |