doing an ftp upload append that was already completed resulted in a

"hang", it now results in an error instead
This commit is contained in:
Daniel Stenberg 2000-11-10 11:28:01 +00:00
parent 1ff573c649
commit 920579ba11
1 changed files with 2 additions and 2 deletions

View File

@ -1062,8 +1062,8 @@ CURLcode _ftp(struct connectdata *conn)
data->infilesize -= data->resume_from;
if(data->infilesize <= 0) {
infof(data, "File already completely uploaded\n");
return CURLE_OK;
failf(data, "File already completely uploaded\n");
return CURLE_FTP_COULDNT_STOR_FILE;
}
}
/* we've passed, proceed as normal */