mirror of
https://github.com/curl/curl.git
synced 2026-05-14 20:26:20 +03:00
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
This commit is contained in:
parent
119037325d
commit
32fc638ddf
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue