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
0756a6ce
Commit
0756a6ce
authored
Jun 09, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If a validation is necessary and no validater is given, return VALIDATION_UNAUTHORIZED
parent
ef82b30d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
stun/stunagent.c
stun/stunagent.c
+2
-1
No files found.
stun/stunagent.c
View file @
0756a6ce
...
@@ -172,7 +172,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
...
@@ -172,7 +172,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
&
username_len
);
&
username_len
);
if
(
username
)
{
if
(
username
)
{
if
(
key
==
NULL
)
{
if
(
key
==
NULL
)
{
if
(
validater
(
agent
,
msg
,
username
,
username_len
,
if
(
validater
==
NULL
||
validater
(
agent
,
msg
,
username
,
username_len
,
&
key
,
&
key_len
,
validater_data
)
==
FALSE
)
{
&
key
,
&
key_len
,
validater_data
)
==
FALSE
)
{
return
STUN_VALIDATION_UNAUTHORIZED
;
return
STUN_VALIDATION_UNAUTHORIZED
;
}
}
...
...
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