Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
cc085796
Commit
cc085796
authored
Apr 07, 2017
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid strcpy()
parent
bfcda8ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sal_op_call.c
coreapi/bellesip_sal/sal_op_call.c
+6
-6
No files found.
coreapi/bellesip_sal/sal_op_call.c
View file @
cc085796
...
...
@@ -37,11 +37,11 @@ static void call_set_error(SalOp* op,belle_sip_response_t* response, bool_t fata
if
(
fatal
)
op
->
state
=
SalOpStateTerminating
;
op
->
base
.
root
->
callbacks
.
call_failure
(
op
);
}
static
void
set_addr_to_0000
(
char
value
[])
{
static
void
set_addr_to_0000
(
char
value
[]
,
size_t
sz
)
{
if
(
ms_is_ipv6
(
value
))
{
str
cpy
(
value
,
"::0"
);
str
ncpy
(
value
,
"::0"
,
sz
);
}
else
{
str
cpy
(
value
,
"0.0.0.0"
);
str
ncpy
(
value
,
"0.0.0.0"
,
sz
);
}
return
;
}
...
...
@@ -66,11 +66,11 @@ static void sdp_process(SalOp *h){
offer_answer_initiate_incoming
(
h
->
base
.
root
->
factory
,
h
->
base
.
local_media
,
h
->
base
.
remote_media
,
h
->
result
,
h
->
base
.
root
->
one_matching_codec
);
/*for backward compatibility purpose*/
if
(
h
->
cnx_ip_to_0000_if_sendonly_enabled
&&
sal_media_description_has_dir
(
h
->
result
,
SalStreamSendOnly
))
{
set_addr_to_0000
(
h
->
result
->
addr
);
set_addr_to_0000
(
h
->
result
->
addr
,
sizeof
(
h
->
result
->
addr
)
);
for
(
i
=
0
;
i
<
SAL_MEDIA_DESCRIPTION_MAX_STREAMS
;
++
i
){
if
(
h
->
result
->
streams
[
i
].
dir
==
SalStreamSendOnly
)
{
set_addr_to_0000
(
h
->
result
->
streams
[
i
].
rtp_addr
);
set_addr_to_0000
(
h
->
result
->
streams
[
i
].
rtcp_addr
);
set_addr_to_0000
(
h
->
result
->
streams
[
i
].
rtp_addr
,
sizeof
(
h
->
result
->
streams
[
i
].
rtp_addr
)
);
set_addr_to_0000
(
h
->
result
->
streams
[
i
].
rtcp_addr
,
sizeof
(
h
->
result
->
streams
[
i
].
rtcp_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