aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-29 10:54:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-29 10:54:39 +0000
commit89934239d7c7336ec60305766666ca276176536d (patch)
treee484d6a6c8212fc13d0ead21b91a3e0dab07bce7
parent8986037fdd7bba97a9a1d60085558a28bcef73de (diff)
reset conn->size to -1 on the ftp-do function to make it not go on to
ftp_done() with the previous transfer's value, as Dave Halbakken found out. He also verified this fixed corrected the problem.
-rw-r--r--lib/ftp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index e9165e700..8cff5c66a 100644
--- 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 */