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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -923,6 +923,7 @@ 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 */
              if(data->state.infilesize != -1)
                data->state.infilesize++;
            }
          }