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
bcb6fb53
Commit
bcb6fb53
authored
Feb 09, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly generate WLM2009 username
parent
2d13729d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
agent/conncheck.c
agent/conncheck.c
+12
-0
No files found.
agent/conncheck.c
View file @
bcb6fb53
...
...
@@ -1147,6 +1147,18 @@ size_t priv_gen_username (NiceAgent *agent, guint component_id,
len
++
;
memcpy
(
dest
+
len
,
local
,
local_len
);
len
+=
local_len
;
}
else
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_WLM2009
&&
dest_len
>=
remote_len
+
local_len
+
4
)
{
memcpy
(
dest
,
remote
,
remote_len
);
len
+=
remote_len
;
memcpy
(
dest
+
len
,
":"
,
1
);
len
++
;
memcpy
(
dest
+
len
,
local
,
local_len
);
len
+=
local_len
;
if
(
len
%
4
!=
0
)
{
memset
(
dest
+
len
,
0
,
4
-
(
len
%
4
));
len
+=
4
-
(
len
%
4
);
}
}
else
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_GOOGLE
&&
dest_len
>=
remote_len
+
local_len
)
{
memcpy
(
dest
,
remote
,
remote_len
);
...
...
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