summaryrefslogtreecommitdiff
path: root/lib/libfetch
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-10-27 11:30:42 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-10-27 11:30:42 +0000
commitd2fcaedaade633619eb86a00f56f5158c7a9fe8e (patch)
tree95bca32ab49a0f1174cdb3104aa632d4dd0f8abb /lib/libfetch
parent9f6bf860b1db17b2fb2d609677f8fa1cff9e857f (diff)
Notes
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 5c28804641c1..00b1cf5e1204 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -389,11 +389,11 @@ _ftp_closefn(void *v)
errno = EBADF;
return -1;
}
- io->err = _ftp_chkerr(io->csd);
+ close(io->dsd);
io->dir = -1;
- if (close(io->dsd) == -1)
- return -1;
io->dsd = -1;
+ DEBUG(fprintf(stderr, "Waiting for final status\n"));
+ io->err = _ftp_chkerr(io->csd);
close(io->csd);
io->csd = -1;
return io->err ? -1 : 0;