Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
51d1f309
Commit
51d1f309
authored
15 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Use Curl_connected_proxy() here instead of duplicating code. Spell out the
badness in the code flow even for the socks case.
parent
f04720af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ftp.c
+5
-25
5 additions, 25 deletions
lib/ftp.c
with
5 additions
and
25 deletions
lib/ftp.c
+
5
−
25
View file @
51d1f309
...
...
@@ -1890,31 +1890,11 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
/* this just dumps information about this second connection */
ftp_pasv_verbose
(
conn
,
conninfo
,
newhost
,
connectport
);
switch
(
data
->
set
.
proxytype
)
{
#ifndef CURL_DISABLE_PROXY
case
CURLPROXY_SOCKS5
:
case
CURLPROXY_SOCKS5_HOSTNAME
:
result
=
Curl_SOCKS5
(
conn
->
proxyuser
,
conn
->
proxypasswd
,
newhost
,
newport
,
SECONDARYSOCKET
,
conn
);
break
;
case
CURLPROXY_SOCKS4
:
result
=
Curl_SOCKS4
(
conn
->
proxyuser
,
newhost
,
newport
,
SECONDARYSOCKET
,
conn
,
FALSE
);
break
;
case
CURLPROXY_SOCKS4A
:
result
=
Curl_SOCKS4
(
conn
->
proxyuser
,
newhost
,
newport
,
SECONDARYSOCKET
,
conn
,
TRUE
);
break
;
#endif
/* CURL_DISABLE_PROXY */
case
CURLPROXY_HTTP
:
case
CURLPROXY_HTTP_1_0
:
/* do nothing here. handled later. */
break
;
default:
failf
(
data
,
"unknown proxytype option given"
);
result
=
CURLE_COULDNT_CONNECT
;
break
;
}
/* FIX: this MUST wait for a proper connect first if 'connected' is
FALSE to make proxies work properly here! */
result
=
Curl_connected_proxy
(
conn
);
if
(
result
)
return
result
;
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
if
(
conn
->
bits
.
tunnel_proxy
&&
conn
->
bits
.
httpproxy
)
{
/* FIX: this MUST wait for a proper connect first if 'connected' is
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment