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
5910d6be
Commit
5910d6be
authored
Sep 18, 2015
by
Simon Morlat
Browse files
avoid crash
parent
700ad5a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/http-provider.c
src/http-provider.c
+9
-1
No files found.
src/http-provider.c
View file @
5910d6be
...
...
@@ -398,8 +398,16 @@ static void belle_http_end_background_task(void* data) {
int
belle_http_provider_send_request
(
belle_http_provider_t
*
obj
,
belle_http_request_t
*
req
,
belle_http_request_listener_t
*
listener
){
belle_sip_channel_t
*
chan
;
belle_sip_list_t
**
channels
;
belle_sip_hop_t
*
hop
=
belle_sip_hop_new_from_generic_uri
(
req
->
orig_uri
?
req
->
orig_uri
:
req
->
req_uri
);
belle_sip_list_t
**
channels
=
belle_http_provider_get_channels
(
obj
,
hop
->
transport
);
if
(
hop
->
host
==
NULL
){
belle_sip_error
(
"belle_http_provider_send_request(): no host defined in request uri."
);
belle_sip_object_unref
(
hop
);
return
-
1
;
}
channels
=
belle_http_provider_get_channels
(
obj
,
hop
->
transport
);
if
(
listener
)
belle_http_request_set_listener
(
req
,
listener
);
...
...
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