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
531ebccc
Commit
531ebccc
authored
Jun 16, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a STUN_ERROR is valid even if it has no error code
parent
748a0a1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
stun/stunagent.c
stun/stunagent.c
+0
-6
No files found.
stun/stunagent.c
View file @
531ebccc
...
...
@@ -76,7 +76,6 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
uint32_t
fpr
;
uint32_t
crc32
;
int
len
;
int
error_code
;
uint8_t
*
username
=
NULL
;
uint16_t
username_len
;
uint8_t
*
key
=
NULL
;
...
...
@@ -137,11 +136,6 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
memcmp
(
msg_id
,
agent
->
sent_ids
[
sent_id_idx
].
id
,
sizeof
(
stun_transid_t
))
==
0
)
{
if
(
stun_message_get_class
(
msg
)
==
STUN_ERROR
&&
stun_message_find_error
(
msg
,
&
error_code
)
!=
0
)
{
stun_debug
(
"STUN demux error: STUN_ERROR with no ERROR_CODE"
);
return
STUN_VALIDATION_BAD_REQUEST
;
}
key
=
agent
->
sent_ids
[
sent_id_idx
].
key
;
key_len
=
agent
->
sent_ids
[
sent_id_idx
].
key_len
;
break
;
...
...
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