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
9bc0702e
Commit
9bc0702e
authored
Feb 02, 2012
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only create the unknown-attributes error if we are going to send it
parent
eee6c8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
agent/conncheck.c
agent/conncheck.c
+4
-5
No files found.
agent/conncheck.c
View file @
9bc0702e
...
...
@@ -2714,14 +2714,13 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
if
(
valid
==
STUN_VALIDATION_UNKNOWN_REQUEST_ATTRIBUTE
)
{
nice_debug
(
"Agent %p : Unknown mandatory attributes in message."
,
agent
);
rbuf_len
=
stun_agent_build_unknown_attributes_error
(
&
agent
->
stun_agent
,
&
msg
,
rbuf
,
rbuf_len
,
&
req
);
if
(
len
==
0
)
return
FALSE
;
if
(
agent
->
compatibility
!=
NICE_COMPATIBILITY_MSN
&&
agent
->
compatibility
!=
NICE_COMPATIBILITY_OC2007
)
{
nice_socket_send
(
socket
,
from
,
rbuf_len
,
(
const
gchar
*
)
rbuf
);
rbuf_len
=
stun_agent_build_unknown_attributes_error
(
&
agent
->
stun_agent
,
&
msg
,
rbuf
,
rbuf_len
,
&
req
);
if
(
rbuf_len
!=
0
)
nice_socket_send
(
socket
,
from
,
rbuf_len
,
(
const
gchar
*
)
rbuf
);
}
return
TRUE
;
}
...
...
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