diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-10-27 11:37:21 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-10-27 11:37:21 +0000 |
commit | 303fd73aa775b9289ced7cc21fa3ad62d283450e (patch) | |
tree | 2a64dadb737eb429de9f6dc5757c742ae88e3761 /lib/libfetch/ftp.c | |
parent | c9e6ddc6afce8a71b48f2352a037c982e937df2c (diff) |
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r-- | lib/libfetch/ftp.c | 6 |
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; |