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
74a6062e
Commit
74a6062e
authored
Nov 04, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly choose a non-existing foundation for remote peer reflexive candidates
parent
29a33974
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
agent/discovery.c
agent/discovery.c
+13
-7
No files found.
agent/discovery.c
View file @
74a6062e
...
...
@@ -682,12 +682,17 @@ static guint priv_highest_remote_foundation (Component *component)
{
GSList
*
i
;
guint
highest
=
0
;
gchar
foundation
[
NICE_CANDIDATE_MAX_FOUNDATION
];
for
(;;)
{
g_snprintf
(
foundation
,
NICE_CANDIDATE_MAX_FOUNDATION
,
"%u"
,
highest
);
for
(
i
=
component
->
remote_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
cand
=
i
->
data
;
guint
foundation_id
=
(
guint
)
atoi
(
cand
->
foundation
);
if
(
foundation_id
>
highest
)
highest
=
foundation_id
;
if
(
strncmp
(
foundation
,
cand
->
foundation
,
NICE_CANDIDATE_MAX_FOUNDATION
)
!=
0
)
{
return
highest
;
}
}
}
return
highest
;
...
...
@@ -730,7 +735,8 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
candidate
->
stream_id
=
stream
->
id
;
candidate
->
component_id
=
component
->
id
;
g_snprintf
(
candidate
->
foundation
,
NICE_CANDIDATE_MAX_FOUNDATION
,
"%u"
,
next_remote_id
);
g_snprintf
(
candidate
->
foundation
,
NICE_CANDIDATE_MAX_FOUNDATION
,
"%u"
,
next_remote_id
);
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
&&
remote
&&
local
)
{
...
...
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