aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-28 22:33:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-28 22:33:30 +0000
commit62032ee248bcd770ac87827b1043a86ee56616e6 (patch)
treecb468db98a23d1a01c381d9677b32ae23af02661 /lib/ftp.c
parent775645f29b2386efb386d0ae99fdfdfc1ad7b45c (diff)
Getting an empty FTP file no longer makes us return error 19. An empty file
is fine to get.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index ff43c0b4d..d86a344e5 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -637,7 +637,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
}
else if(!conn->bits.resume_done &&
!data->set.no_body &&
- (0 == *ftp->bytecountp)) {
+ (!*ftp->bytecountp && (conn->size>0))) {
/* We consider this an error, but there's no true FTP error received
why we need to continue to "read out" the server response too.
We don't want to leave a "waiting" server reply if we'll get told