Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
8c02cac3
Commit
8c02cac3
authored
Oct 05, 2012
by
Ghislain MARY
Browse files
Fix to prevent crashes.
parent
cb2b97aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
coreapi/misc.c
coreapi/misc.c
+1
-2
No files found.
coreapi/misc.c
View file @
8c02cac3
...
...
@@ -787,8 +787,7 @@ void linphone_core_update_local_media_description_from_ice(SalMediaDescription *
if
((
ice_check_list_state
(
cl
)
==
ICL_Completed
)
&&
(
ice_session_role
(
session
)
==
IR_Controlling
))
{
int
rtp_port
,
rtcp_port
;
memset
(
stream
->
ice_remote_candidates
,
0
,
sizeof
(
stream
->
ice_remote_candidates
));
ice_check_list_selected_valid_remote_candidate
(
cl
,
&
rtp_addr
,
&
rtp_port
,
&
rtcp_addr
,
&
rtcp_port
);
if
((
rtp_addr
!=
NULL
)
&&
(
rtcp_addr
!=
NULL
))
{
if
(
ice_check_list_selected_valid_remote_candidate
(
cl
,
&
rtp_addr
,
&
rtp_port
,
&
rtcp_addr
,
&
rtcp_port
)
==
TRUE
)
{
strncpy
(
stream
->
ice_remote_candidates
[
0
].
addr
,
rtp_addr
,
sizeof
(
stream
->
ice_remote_candidates
[
0
].
addr
));
stream
->
ice_remote_candidates
[
0
].
port
=
rtp_port
;
strncpy
(
stream
->
ice_remote_candidates
[
1
].
addr
,
rtcp_addr
,
sizeof
(
stream
->
ice_remote_candidates
[
1
].
addr
));
...
...
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