Skip to content
Snippets Groups Projects
Commit 89934239 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 8986037f
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment