summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-24 00:15:56 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-24 02:08:36 (GMT)
commit88f9cb42c8ba04ee32ca2a69a83596df40b13d50 (patch)
tree344b5f712013634b4a2526fc4a72911ea86438d0
parentae6631638d46bfac35207f51f4f5658f4c34bd93 (diff)
downloadlibnice-88f9cb42c8ba04ee32ca2a69a83596df40b13d50.tar.gz
libnice-88f9cb42c8ba04ee32ca2a69a83596df40b13d50.tar.xz
Change variable buffer_len into attribute_len: variable already exists in different scope
-rw-r--r--stun/usages/ice.c10
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);