mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 20:15:03 -05:00
moved variables more locally to get rid of one set of #ifdefs
This commit is contained in:
parent
51d1f309cd
commit
bcdbba05d3
@ -3040,11 +3040,6 @@ static CURLcode ftp_connect(struct connectdata *conn,
|
|||||||
bool *done) /* see description above */
|
bool *done) /* see description above */
|
||||||
{
|
{
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
|
|
||||||
/* for FTP over HTTP proxy */
|
|
||||||
struct HTTP http_proxy;
|
|
||||||
struct FTP *ftp_save;
|
|
||||||
#endif /* CURL_DISABLE_HTTP */
|
|
||||||
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
||||||
struct SessionHandle *data=conn->data;
|
struct SessionHandle *data=conn->data;
|
||||||
|
|
||||||
@ -3065,6 +3060,10 @@ static CURLcode ftp_connect(struct connectdata *conn,
|
|||||||
|
|
||||||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
|
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
|
||||||
if(conn->bits.tunnel_proxy && conn->bits.httpproxy) {
|
if(conn->bits.tunnel_proxy && conn->bits.httpproxy) {
|
||||||
|
/* for FTP over HTTP proxy */
|
||||||
|
struct HTTP http_proxy;
|
||||||
|
struct FTP *ftp_save;
|
||||||
|
|
||||||
/* BLOCKING */
|
/* BLOCKING */
|
||||||
/* We want "seamless" FTP operations through HTTP proxy tunnel */
|
/* We want "seamless" FTP operations through HTTP proxy tunnel */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user