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
d9bd5de0
Commit
d9bd5de0
authored
19 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Fixed FTP_SKIP_PASV_IP and FTP_USE_EPSV to "do right" when used on FTP thru
HTTP proxy.
parent
31c7aa0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+7
-3
7 additions, 3 deletions
CHANGES
RELEASE-NOTES
+3
-0
3 additions, 0 deletions
RELEASE-NOTES
lib/ftp.c
+13
-3
13 additions, 3 deletions
lib/ftp.c
with
23 additions
and
6 deletions
CHANGES
+
7
−
3
View file @
d9bd5de0
...
@@ -7,9 +7,13 @@
...
@@ -7,9 +7,13 @@
Changelog
Changelog
Daniel (12 January 2006)
Daniel (12 January 2006)
- Michael Jahn fixed PROXYTUNNEL to work fine when you do ftp through a proxy.
- Michael Jahn:
It would previously overwrite internal memory and cause unpredicted
behaviour!
Fixed FTP_SKIP_PASV_IP and FTP_USE_EPSV to "do right" when used on FTP thru
HTTP proxy.
Fixed PROXYTUNNEL to work fine when you do ftp through a proxy. It would
previously overwrite internal memory and cause unpredicted behaviour!
Daniel (11 January 2006)
Daniel (11 January 2006)
- I decided to document the "secret option" here now, as I've received *NO*
- I decided to document the "secret option" here now, as I've received *NO*
...
...
This diff is collapsed.
Click to expand it.
RELEASE-NOTES
+
3
−
0
View file @
d9bd5de0
...
@@ -15,6 +15,7 @@ This release includes the following changes:
...
@@ -15,6 +15,7 @@ This release includes the following changes:
This release includes the following bugfixes:
This release includes the following bugfixes:
o FTP_SKIP_PASV_IP and FTP_USE_EPSV when doing FTP over HTTP proxy
o Doing a second request with FTP on the same bath path, would make libcurl
o Doing a second request with FTP on the same bath path, would make libcurl
confuse what current working directory it had
confuse what current working directory it had
o FTP over HTTP proxy now sends the second CONNECT properly
o FTP over HTTP proxy now sends the second CONNECT properly
...
@@ -28,6 +29,8 @@ Other curl-related news since the previous public release:
...
@@ -28,6 +29,8 @@ Other curl-related news since the previous public release:
o http://curl.hkmirror.org/ is a new curl web mirror in Hong Kong
o http://curl.hkmirror.org/ is a new curl web mirror in Hong Kong
o http://curl.storemypix.com/ is a new curl web mirror in Germany
o http://curl.storemypix.com/ is a new curl web mirror in Germany
o http://curl.s-lines.net/ is a new curl web mirror in Japan
o http://curl.s-lines.net/ is a new curl web mirror in Japan
o TclCurl 0.15.1 was released:
http://personal1.iddeo.es/andresgarci/tclcurl/english/
This release would not have looked like this without help, code, reports and
This release would not have looked like this without help, code, reports and
advice from friends like these:
advice from friends like these:
...
...
This diff is collapsed.
Click to expand it.
lib/ftp.c
+
13
−
3
View file @
d9bd5de0
...
@@ -1543,8 +1543,13 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
...
@@ -1543,8 +1543,13 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
if
(
ptr
)
{
if
(
ptr
)
{
newport
=
num
;
newport
=
num
;
/* use the same IP we are already connected to */
if
(
conn
->
bits
.
tunnel_proxy
)
snprintf
(
newhost
,
NEWHOST_BUFSIZE
,
"%s"
,
conn
->
ip_addr_str
);
/* proxy tunnel -> use other host info because ip_addr_str is the
proxy address not the ftp host */
snprintf
(
newhost
,
sizeof
(
newhost
),
"%s"
,
conn
->
host
.
name
);
else
/* use the same IP we are already connected to */
snprintf
(
newhost
,
NEWHOST_BUFSIZE
,
"%s"
,
conn
->
ip_addr_str
);
}
}
}
}
else
else
...
@@ -1590,7 +1595,12 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
...
@@ -1590,7 +1595,12 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
infof
(
data
,
"Skips %d.%d.%d.%d for data connection, uses %s instead
\n
"
,
infof
(
data
,
"Skips %d.%d.%d.%d for data connection, uses %s instead
\n
"
,
ip
[
0
],
ip
[
1
],
ip
[
2
],
ip
[
3
],
ip
[
0
],
ip
[
1
],
ip
[
2
],
ip
[
3
],
conn
->
ip_addr_str
);
conn
->
ip_addr_str
);
snprintf
(
newhost
,
sizeof
(
newhost
),
"%s"
,
conn
->
ip_addr_str
);
if
(
conn
->
bits
.
tunnel_proxy
)
/* proxy tunnel -> use other host info because ip_addr_str is the
proxy address not the ftp host */
snprintf
(
newhost
,
sizeof
(
newhost
),
"%s"
,
conn
->
host
.
name
);
else
snprintf
(
newhost
,
sizeof
(
newhost
),
"%s"
,
conn
->
ip_addr_str
);
}
}
else
else
snprintf
(
newhost
,
sizeof
(
newhost
),
snprintf
(
newhost
,
sizeof
(
newhost
),
...
...
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