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
belle-sip
Commits
5a9f82a7
Commit
5a9f82a7
authored
Sep 23, 2015
by
Simon Morlat
Browse files
fix crash
parent
cb283114
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
src/http-provider.c
src/http-provider.c
+10
-12
No files found.
src/http-provider.c
View file @
5a9f82a7
...
...
@@ -487,19 +487,17 @@ int belle_http_provider_set_tls_verify_policy(belle_http_provider_t *obj, belle_
}
void
belle_http_provider_set_recv_error
(
belle_http_provider_t
*
obj
,
int
recv_error
)
{
belle_sip_list_t
*
lps
;
belle_sip_list_t
*
channels
;
for
(
lps
=
obj
->
tcp_channels
;
lps
!=
NULL
;
lps
=
lps
->
next
){
for
(
channels
=
((
belle_sip_listening_point_t
*
)
lps
->
data
)
->
channels
;
channels
!=
NULL
;
channels
=
channels
->
next
){
((
belle_sip_channel_t
*
)
channels
->
data
)
->
simulated_recv_return
=
recv_error
;
((
belle_sip_source_t
*
)
channels
->
data
)
->
notify_required
=
(
recv_error
<=
0
);
}
belle_sip_list_t
*
it
;
for
(
it
=
obj
->
tcp_channels
;
it
!=
NULL
;
it
=
it
->
next
){
belle_sip_channel_t
*
chan
=
(
belle_sip_channel_t
*
)
it
->
data
;
chan
->
simulated_recv_return
=
recv_error
;
chan
->
base
.
notify_required
=
(
recv_error
<=
0
);
}
for
(
lps
=
obj
->
tls_channels
;
lps
!=
NULL
;
lps
=
lps
->
next
){
for
(
channels
=
((
belle_sip_listening_point_t
*
)
lps
->
data
)
->
channels
;
channels
!=
NULL
;
channels
=
channels
->
next
){
((
belle_sip_channel_t
*
)
channels
->
data
)
->
simulated_recv_return
=
recv_error
;
((
belle_sip_source_t
*
)
channels
->
data
)
->
notify_required
=
(
recv_error
<=
0
);
}
for
(
it
=
obj
->
tls_channels
;
it
!=
NULL
;
it
=
it
->
next
){
belle_sip_channel_t
*
chan
=
(
belle_sip_channel_t
*
)
it
->
data
;
chan
->
simulated_recv_return
=
recv_error
;
chan
->
base
.
notify_required
=
(
recv_error
<=
0
);
}
}
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