diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2011-03-23 20:15:56 -0400 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2011-03-23 22:08:36 -0400 |
commit | 88f9cb42c8ba04ee32ca2a69a83596df40b13d50 (patch) | |
tree | 344b5f712013634b4a2526fc4a72911ea86438d0 /stun | |
parent | ae6631638d46bfac35207f51f4f5658f4c34bd93 (diff) |
Change variable buffer_len into attribute_len: variable already exists in different scope
Diffstat (limited to 'stun')
-rw-r--r-- | stun/usages/ice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stun/usages/ice.c b/stun/usages/ice.c index d73beee..7cc1781 100644 --- a/stun/usages/ice.c +++ b/stun/usages/ice.c @@ -102,19 +102,19 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg, if (compatibility == STUN_USAGE_ICE_COMPATIBILITY_WLM2009) { size_t identifier_len = strlen(candidate_identifier); - size_t buffer_len = identifier_len; + size_t attribute_len = identifier_len; int modulo4 = identifier_len % 4; uint8_t* buf; if (modulo4) - buffer_len += 4 - modulo4; + attribute_len += 4 - modulo4; - buf = malloc(buffer_len); - memset(buf, 0, buffer_len); + buf = malloc(attribute_len); + memset(buf, 0, attribute_len); memcpy(buf, candidate_identifier, identifier_len); val = stun_message_append_bytes (msg, STUN_ATTRIBUTE_CANDIDATE_IDENTIFIER, - buf, buffer_len); + buf, attribute_len); free(buf); |