summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libfetch/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index ff7bf86..f1ffbf2 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -349,7 +349,7 @@ _ftp_readfn(void *v, char *buf, int len)
return r;
if (r == 0) {
io->eof = 1;
- return _ftp_closefn(v);
+ return 0;
}
if (errno != EINTR)
io->err = errno;
OpenPOWER on IntegriCloud