diff options
author | Youness Alaoui <kakaroto@kakaroto.(none)> | 2008-06-25 13:05:49 -0400 |
---|---|---|
committer | Youness Alaoui <kakaroto@kakaroto.(none)> | 2008-06-25 13:05:49 -0400 |
commit | e168451bef10636b1f25d6e5d3cb036f0834a485 (patch) | |
tree | 0970f27c8aac164167b60a134b59adf471e1e12b /stun | |
parent | 829ac1aed7e98d7c3714b1ca15825084cef0687f (diff) | |
download | libnice-e168451bef10636b1f25d6e5d3cb036f0834a485.tar.gz |
Do not force the password on error responses, let the agent take care of that, so 'unauthorized' responses won't get a message-integrity
Diffstat (limited to 'stun')
-rw-r--r-- | stun/usages/stun-ice.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stun/usages/stun-ice.c b/stun/usages/stun-ice.c index 79fb806..3bba076 100644 --- a/stun/usages/stun-ice.c +++ b/stun/usages/stun-ice.c @@ -53,7 +53,7 @@ static int stun_bind_error (StunAgent *agent, StunMessage *msg, uint8_t *buf, size_t *plen, const StunMessage *req, - stun_error_t code, const uint8_t *key, size_t key_len) + stun_error_t code) { size_t len = *plen; int val; @@ -65,7 +65,7 @@ stun_bind_error (StunAgent *agent, StunMessage *msg, if (!val) return val; - len = stun_agent_finish_message (agent, msg, key, key_len); + len = stun_agent_finish_message (agent, msg, NULL, 0); if (len == 0) return 0; @@ -97,7 +97,7 @@ stun_conncheck_reply (StunAgent *agent, StunMessage *req, #define err( code ) \ - stun_bind_error (agent, msg, buf, &len, req, code, password, password_len); \ + stun_bind_error (agent, msg, buf, &len, req, code); \ *plen = len *plen = 0; |