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
bd14e256
Commit
bd14e256
authored
Feb 12, 2020
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udp-bsd: Check all return value
Errors found by coverity
parent
dc6a9a26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
socket/udp-turn.c
socket/udp-turn.c
+10
-4
No files found.
socket/udp-turn.c
View file @
bd14e256
...
...
@@ -889,16 +889,22 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to,
if
(
priv
->
compatibility
==
NICE_TURN_SOCKET_COMPATIBILITY_GOOGLE
&&
priv
->
current_binding
&&
nice_address_equal
(
&
priv
->
current_binding
->
peer
,
to
))
{
stun_message_append32
(
&
msg
,
STUN_ATTRIBUTE_OPTIONS
,
1
);
if
(
stun_message_append32
(
&
msg
,
STUN_ATTRIBUTE_OPTIONS
,
1
)
!=
STUN_MESSAGE_RETURN_SUCCESS
)
goto
error
;
}
}
if
(
priv
->
compatibility
==
NICE_TURN_SOCKET_COMPATIBILITY_OC2007
)
{
stun_message_append32
(
&
msg
,
STUN_ATTRIBUTE_MS_VERSION
,
1
);
if
(
stun_message_append32
(
&
msg
,
STUN_ATTRIBUTE_MS_VERSION
,
1
)
!=
STUN_MESSAGE_RETURN_SUCCESS
)
goto
error
;
if
(
priv
->
ms_connection_id_valid
)
stun_message_append_ms_connection_id
(
&
msg
,
priv
->
ms_connection_id
,
++
priv
->
ms_sequence_num
);
if
(
stun_message_append_ms_connection_id
(
&
msg
,
priv
->
ms_connection_id
,
++
priv
->
ms_sequence_num
)
!=
STUN_MESSAGE_RETURN_SUCCESS
)
goto
error
;
stun_message_ensure_ms_realm
(
&
msg
,
priv
->
ms_realm
);
}
...
...
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