diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-12-23 23:22:34 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-12-23 23:22:34 -0500 |
commit | 32bf4b287d79c2806cf3955850d1c375125dd417 (patch) | |
tree | e0c6b6911b9f0ba4bbfe8d59f6f21cd9a8ca2be2 /stun | |
parent | 39023ed40c005abc8520972a88542f5f72b1a626 (diff) | |
download | libnice-32bf4b287d79c2806cf3955850d1c375125dd417.tar.gz |
stun: Indications are never authentication when using long term auth
Diffstat (limited to 'stun')
-rw-r--r-- | stun/stunagent.c | 3 |
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 && |