Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
88f9cb42
Commit
88f9cb42
authored
Mar 23, 2011
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change variable buffer_len into attribute_len: variable already exists in different scope
parent
ae663163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
stun/usages/ice.c
stun/usages/ice.c
+5
-5
No files found.
stun/usages/ice.c
View file @
88f9cb42
...
@@ -102,19 +102,19 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg,
...
@@ -102,19 +102,19 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg,
if
(
compatibility
==
STUN_USAGE_ICE_COMPATIBILITY_WLM2009
)
{
if
(
compatibility
==
STUN_USAGE_ICE_COMPATIBILITY_WLM2009
)
{
size_t
identifier_len
=
strlen
(
candidate_identifier
);
size_t
identifier_len
=
strlen
(
candidate_identifier
);
size_t
buffer
_len
=
identifier_len
;
size_t
attribute
_len
=
identifier_len
;
int
modulo4
=
identifier_len
%
4
;
int
modulo4
=
identifier_len
%
4
;
uint8_t
*
buf
;
uint8_t
*
buf
;
if
(
modulo4
)
if
(
modulo4
)
buffer
_len
+=
4
-
modulo4
;
attribute
_len
+=
4
-
modulo4
;
buf
=
malloc
(
buffer
_len
);
buf
=
malloc
(
attribute
_len
);
memset
(
buf
,
0
,
buffer
_len
);
memset
(
buf
,
0
,
attribute
_len
);
memcpy
(
buf
,
candidate_identifier
,
identifier_len
);
memcpy
(
buf
,
candidate_identifier
,
identifier_len
);
val
=
stun_message_append_bytes
(
msg
,
STUN_ATTRIBUTE_CANDIDATE_IDENTIFIER
,
val
=
stun_message_append_bytes
(
msg
,
STUN_ATTRIBUTE_CANDIDATE_IDENTIFIER
,
buf
,
buffer
_len
);
buf
,
attribute
_len
);
free
(
buf
);
free
(
buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment