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

FTP: fix uploading ASCII with unknown size

... don't try to increase the supposed file size on newlines if we don't
know what file size it is!

Patch-by: lzsiga
parent 11903732
No related branches found
No related tags found
No related merge requests found
......@@ -923,7 +923,8 @@ static CURLcode readwrite_upload(struct SessionHandle *data,
if(!data->set.crlf) {
/* we're here only because FTP is in ASCII mode...
bump infilesize for the LF we just added */
data->state.infilesize++;
if(data->state.infilesize != -1)
data->state.infilesize++;
}
}
else
......
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