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
f4ae3ffc
Commit
f4ae3ffc
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discovery: Remove useless checks from discovery_learn_remote_peer_reflexive_candidate
parent
2664581b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
59 deletions
+50
-59
agent/discovery.c
agent/discovery.c
+50
-59
No files found.
agent/discovery.c
View file @
f4ae3ffc
...
...
@@ -770,8 +770,6 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
(
void
)
udp_socket
;
candidate
=
nice_candidate_new
(
NICE_CANDIDATE_TYPE_PEER_REFLEXIVE
);
if
(
candidate
)
{
GSList
*
modified_list
;
candidate
->
transport
=
NICE_CANDIDATE_TRANSPORT_UDP
;
candidate
->
addr
=
*
remote_address
;
...
...
@@ -825,21 +823,14 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
candidate
->
password
=
g_strdup
(
remote
->
password
);
}
candidate
->
sockptr
=
NULL
;
/* not stored for remote candidates */
/* note: candidate username and password are left NULL as stream
level ufrag/password are used */
modified_list
=
g_slist_append
(
component
->
remote_candidates
,
component
->
remote_candidates
=
g_slist_append
(
component
->
remote_candidates
,
candidate
);
if
(
modified_list
)
{
component
->
remote_candidates
=
modified_list
;
agent_signal_new_remote_candidate
(
agent
,
candidate
);
}
else
{
/* error: memory alloc / list */
nice_candidate_free
(
candidate
),
candidate
=
NULL
;
}
}
return
candidate
;
}
...
...
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