From 920579ba1189de99f2242acf102f8b64ee00ee0b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Nov 2000 11:28:01 +0000 Subject: doing an ftp upload append that was already completed resulted in a "hang", it now results in an error instead --- lib/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ftp.c b/lib/ftp.c index 3469c33b1..88e7faf15 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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 */ -- cgit v1.2.3