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
f2969044
Commit
f2969044
authored
Oct 16, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly check if the method of the stun response is correct in the stun usages process functions
parent
6f427b19
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
stun/usages/bind.c
stun/usages/bind.c
+3
-0
stun/usages/ice.c
stun/usages/ice.c
+3
-0
stun/usages/turn.c
stun/usages/turn.c
+3
-0
No files found.
stun/usages/bind.c
View file @
f2969044
...
...
@@ -72,6 +72,9 @@ StunUsageBindReturn stun_usage_bind_process (StunMessage *msg,
{
int
val
,
code
=
-
1
;
if
(
stun_message_get_method
(
msg
)
!=
STUN_BINDING
)
return
STUN_USAGE_BIND_RETURN_RETRY
;
switch
(
stun_message_get_class
(
msg
))
{
case
STUN_REQUEST
:
...
...
stun/usages/ice.c
View file @
f2969044
...
...
@@ -100,6 +100,9 @@ StunUsageIceReturn stun_usage_ice_conncheck_process (StunMessage *msg,
{
int
val
,
code
=
-
1
;
if
(
stun_message_get_method
(
msg
)
!=
STUN_BINDING
)
return
STUN_USAGE_ICE_RETURN_RETRY
;
switch
(
stun_message_get_class
(
msg
))
{
case
STUN_REQUEST
:
...
...
stun/usages/turn.c
View file @
f2969044
...
...
@@ -207,6 +207,9 @@ StunUsageTurnReturn stun_usage_turn_process (StunMessage *msg,
int
val
,
code
=
-
1
;
StunUsageTurnReturn
ret
=
STUN_USAGE_TURN_RETURN_RELAY_SUCCESS
;
if
(
stun_message_get_method
(
msg
)
!=
STUN_ALLOCATE
)
return
STUN_USAGE_TURN_RETURN_RETRY
;
switch
(
stun_message_get_class
(
msg
))
{
case
STUN_REQUEST
:
...
...
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