projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
775645f
)
Getting an empty FTP file no longer makes us return error 19. An empty file
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 28 May 2002 22:33:30 +0000
(22:33 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 28 May 2002 22:33:30 +0000
(22:33 +0000)
is fine to get.
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
ff43c0b
..
d86a344
100644
(file)
--- 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