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
43aebdbb
Commit
43aebdbb
authored
Jun 17, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the bind transport correctly refuse non response or errors with no ERROR_CODE attribute
parent
0ec3015a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
stun/tools/trans.c
stun/tools/trans.c
+13
-3
No files found.
stun/tools/trans.c
View file @
43aebdbb
...
@@ -418,12 +418,22 @@ int stun_trans_preprocess (StunAgent *agent,
...
@@ -418,12 +418,22 @@ int stun_trans_preprocess (StunAgent *agent,
if
(
valid
!=
STUN_VALIDATION_SUCCESS
)
if
(
valid
!=
STUN_VALIDATION_SUCCESS
)
return
EAGAIN
;
return
EAGAIN
;
switch
(
stun_message_get_class
(
&
tr
->
message
))
{
case
STUN_REQUEST
:
case
STUN_INDICATION
:
return
EAGAIN
;
break
;
case
STUN_ERROR
:
if
(
stun_message_find_error
(
&
tr
->
message
,
pcode
)
!=
0
)
return
EAGAIN
;
// missing ERROR-CODE: ignore message
break
;
}
stun_debug
(
"Received %u-bytes STUN message
\n
"
,
(
unsigned
)
len
);
stun_debug
(
"Received %u-bytes STUN message
\n
"
,
(
unsigned
)
len
);
/* NOTE: currently we ignore unauthenticated messages if the context
/* NOTE: currently we ignore unauthenticated messages if the context
* is authenticated, for security reasons. */
* is authenticated, for security reasons. */
if
(
stun_message_get_class
(
&
tr
->
message
)
==
STUN_ERROR
)
{
stun_message_find_error
(
&
tr
->
message
,
pcode
);
}
if
(
*
pcode
>=
0
)
if
(
*
pcode
>=
0
)
{
{
stun_debug
(
" STUN error message received (code: %d)
\n
"
,
*
pcode
);
stun_debug
(
" STUN error message received (code: %d)
\n
"
,
*
pcode
);
...
...
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