mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -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;
|
data->infilesize -= data->resume_from;
|
||||||
|
|
||||||
if(data->infilesize <= 0) {
|
if(data->infilesize <= 0) {
|
||||||
infof(data, "File already completely uploaded\n");
|
failf(data, "File already completely uploaded\n");
|
||||||
return CURLE_OK;
|
return CURLE_FTP_COULDNT_STOR_FILE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* we've passed, proceed as normal */
|
/* we've passed, proceed as normal */
|
||||||
|
Loading…
Reference in New Issue
Block a user