summaryrefslogtreecommitdiff
path: root/stun
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2013-12-23 23:22:34 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-12-23 23:22:34 -0500
commit32bf4b287d79c2806cf3955850d1c375125dd417 (patch)
treee0c6b6911b9f0ba4bbfe8d59f6f21cd9a8ca2be2 /stun
parent39023ed40c005abc8520972a88542f5f72b1a626 (diff)
downloadlibnice-32bf4b287d79c2806cf3955850d1c375125dd417.tar.gz
stun: Indications are never authentication when using long term auth
Diffstat (limited to 'stun')
-rw-r--r--stun/stunagent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stun/stunagent.c b/stun/stunagent.c
index e3540ab..0943a02 100644
--- a/stun/stunagent.c
+++ b/stun/stunagent.c
@@ -193,7 +193,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
STUN_MESSAGE_RETURN_SUCCESS &&
(error_code == 400 || error_code == 401)) ||
(stun_message_get_class (msg) == STUN_INDICATION &&
- (agent->usage_flags & STUN_AGENT_USAGE_NO_INDICATION_AUTH));
+ (agent->usage_flags & STUN_AGENT_USAGE_LONG_TERM_CREDENTIALS ||
+ agent->usage_flags & STUN_AGENT_USAGE_NO_INDICATION_AUTH));
if (key == NULL &&
ignore_credentials == 0 &&