Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy B. Terriberry
Opusfile
Commits
073fe98c
Commit
073fe98c
authored
Sep 22, 2012
by
Timothy B. Terriberry
Browse files
Minor http redirect clean-ups.
Actually close the old socket. Don't initialize SSL more than once.
parent
9df7ae98
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/http.c
View file @
073fe98c
...
...
@@ -1190,7 +1190,7 @@ static int op_http_stream_open(OpusHTTPStream *_stream,const char *_url,
last_host
=
host
;
last_port
=
port
;
/*Initialize the SSL library if necessary.*/
if
(
OP_URL_IS_SSL
(
&
_stream
->
url
)){
if
(
OP_URL_IS_SSL
(
&
_stream
->
url
)
&&
_stream
->
ssl_ctx
==
NULL
){
SSL_CTX
*
ssl_ctx
;
/*We need to establish a CONNECT tunnel to handle https proxying.
This isn't supported yet.*/
...
...
@@ -1406,6 +1406,7 @@ static int op_http_stream_open(OpusHTTPStream *_stream,const char *_url,
if
(
last_host
!=
_proxy_host
)
_ogg_free
((
void
*
)
last_host
);
return
ret
;
}
op_http_conn_close
(
_stream
,
_stream
->
conns
+
0
);
}
/*Redirection limit reached.*/
return
OP_FALSE
;
...
...
Write
Preview
Supports
Markdown
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