1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -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:
Daniel Stenberg 2000-11-10 11:28:01 +00:00
parent 1ff573c649
commit 920579ba11

View File

@ -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 */