summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2019-01-22 18:46:55 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2019-01-23 12:10:46 -0500
commit6df8fa64035f794b8adca83f0a47d427c3c8381f (patch)
tree10eb46b0b56498d3e8537302bf1b9eb548c40088
parent4f3638478864a10a6aa19ec82e7253d03245a0d3 (diff)
downloadlibnice-6df8fa64035f794b8adca83f0a47d427c3c8381f.tar.gz
turn: Allow alternate server error with no valid credentials
coturn doesn't authenticate us before sending us to an alternate server.
-rw-r--r--stun/stunagent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stun/stunagent.c b/stun/stunagent.c
index f754322..26adb9f 100644
--- a/stun/stunagent.c
+++ b/stun/stunagent.c
@@ -222,7 +222,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
STUN_MESSAGE_RETURN_SUCCESS &&
(error_code == STUN_ERROR_BAD_REQUEST ||
error_code == STUN_ERROR_UNAUTHORIZED ||
- error_code == STUN_ERROR_STALE_NONCE)) ||
+ error_code == STUN_ERROR_STALE_NONCE ||
+ error_code == STUN_ERROR_TRY_ALTERNATE)) ||
(stun_message_get_class (msg) == STUN_INDICATION &&
(agent->usage_flags & STUN_AGENT_USAGE_LONG_TERM_CREDENTIALS ||
agent->usage_flags & STUN_AGENT_USAGE_NO_INDICATION_AUTH));