mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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:
parent
1ff573c649
commit
920579ba11
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user