projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8986037
)
reset conn->size to -1 on the ftp-do function to make it not go on to
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 29 Jan 2003 10:54:39 +0000
(10:54 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 29 Jan 2003 10:54:39 +0000
(10:54 +0000)
ftp_done() with the previous transfer's value, as Dave Halbakken found out.
He also verified this fixed corrected the problem.
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
e9165e7
..
8cff5c6
100644
(file)
--- a/
lib/ftp.c
+++ b/
lib/ftp.c
@@
-2060,6
+2060,7
@@
CURLcode Curl_ftp(struct connectdata *conn)
/* the ftp struct is already inited in ftp_connect() */
ftp = conn->proto.ftp;
+ conn->size = -1; /* make sure this is unknown at this point */
/* We split the path into dir and file parts *before* we URLdecode
it */