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
d79f997e
Commit
d79f997e
authored
Dec 17, 2010
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refuse to create a permission without a peer instead of not sending the XOR_PEER_ADDRESS
parent
b0a68608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
stun/usages/turn.c
stun/usages/turn.c
+6
-5
No files found.
stun/usages/turn.c
View file @
d79f997e
...
@@ -224,15 +224,16 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg,
...
@@ -224,15 +224,16 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg,
struct
sockaddr
*
peer
,
struct
sockaddr
*
peer
,
StunUsageTurnCompatibility
compatibility
)
StunUsageTurnCompatibility
compatibility
)
{
{
if
(
!
peer
)
return
0
;
stun_agent_init_request
(
agent
,
msg
,
buffer
,
buffer_len
,
stun_agent_init_request
(
agent
,
msg
,
buffer
,
buffer_len
,
STUN_CREATEPERMISSION
);
STUN_CREATEPERMISSION
);
/* PEER address */
/* PEER address */
if
(
peer
)
{
if
(
stun_message_append_xor_addr
(
msg
,
STUN_ATTRIBUTE_XOR_PEER_ADDRESS
,
if
(
stun_message_append_xor_addr
(
msg
,
STUN_ATTRIBUTE_XOR_PEER_ADDRESS
,
peer
,
sizeof
(
*
peer
))
!=
STUN_MESSAGE_RETURN_SUCCESS
)
{
peer
,
sizeof
(
*
peer
))
!=
STUN_MESSAGE_RETURN_SUCCESS
)
{
return
0
;
return
0
;
}
}
}
/* nonce */
/* nonce */
...
...
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