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
11d3ded8
Commit
11d3ded8
authored
Mar 31, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oups, this caused non-msn calls to fail
parent
7d019fb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
agent/conncheck.c
agent/conncheck.c
+15
-14
No files found.
agent/conncheck.c
View file @
11d3ded8
...
...
@@ -2636,20 +2636,21 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
if
(
stun_message_get_class
(
&
req
)
==
STUN_REQUEST
)
{
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
&&
local_candidate
&&
remote_candidate2
)
{
username
=
(
uint8_t
*
)
stun_message_find
(
&
req
,
STUN_ATTRIBUTE_USERNAME
,
&
username_len
);
uname_len
=
priv_create_username
(
agent
,
stream
,
component
->
id
,
remote_candidate2
,
local_candidate
,
uname
,
sizeof
(
uname
),
FALSE
);
memcpy
(
username
,
uname
,
username_len
);
req
.
key
=
g_base64_decode
((
gchar
*
)
remote_candidate2
->
password
,
&
req
.
key_len
);
}
else
{
nice_debug
(
"Agent %p : received MSN incoming check from unknown remote candidate. "
"Ignoring request"
,
agent
);
return
TRUE
;
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
if
(
local_candidate
&&
remote_candidate2
)
{
username
=
(
uint8_t
*
)
stun_message_find
(
&
req
,
STUN_ATTRIBUTE_USERNAME
,
&
username_len
);
uname_len
=
priv_create_username
(
agent
,
stream
,
component
->
id
,
remote_candidate2
,
local_candidate
,
uname
,
sizeof
(
uname
),
FALSE
);
memcpy
(
username
,
uname
,
username_len
);
req
.
key
=
g_base64_decode
((
gchar
*
)
remote_candidate2
->
password
,
&
req
.
key_len
);
}
else
{
nice_debug
(
"Agent %p : received MSN incoming check from unknown remote candidate. "
"Ignoring request"
,
agent
);
return
TRUE
;
}
}
rbuf_len
=
sizeof
(
rbuf
);
...
...
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