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
0a4f25e8
Commit
0a4f25e8
authored
Jun 17, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the key len is -1, then do an strlen on the key
parent
c7072612
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
stun/stunagent.c
stun/stunagent.c
+8
-1
No files found.
stun/stunagent.c
View file @
0a4f25e8
...
@@ -176,7 +176,10 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
...
@@ -176,7 +176,10 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
}
}
}
}
if
(
key
!=
NULL
&&
key_len
>
0
)
{
if
(
key
!=
NULL
&&
key_len
==
-
1
)
{
key_len
=
strlen
(
key
);
}
if
(
key
!=
NULL
)
{
hash
=
(
uint8_t
*
)
stun_message_find
(
msg
,
hash
=
(
uint8_t
*
)
stun_message_find
(
msg
,
STUN_ATTRIBUTE_MESSAGE_INTEGRITY
,
&
hlen
);
STUN_ATTRIBUTE_MESSAGE_INTEGRITY
,
&
hlen
);
...
@@ -371,6 +374,10 @@ size_t stun_agent_finish_message (StunAgent *agent, StunMessage *msg,
...
@@ -371,6 +374,10 @@ size_t stun_agent_finish_message (StunAgent *agent, StunMessage *msg,
int
i
;
int
i
;
stun_transid_t
id
;
stun_transid_t
id
;
if
(
key
!=
NULL
&&
key_len
==
-
1
)
{
key_len
=
strlen
(
key
);
}
if
(
key
!=
NULL
)
{
if
(
key
!=
NULL
)
{
ptr
=
stun_message_append
(
msg
,
STUN_ATTRIBUTE_MESSAGE_INTEGRITY
,
20
);
ptr
=
stun_message_append
(
msg
,
STUN_ATTRIBUTE_MESSAGE_INTEGRITY
,
20
);
if
(
ptr
==
NULL
)
{
if
(
ptr
==
NULL
)
{
...
...
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