diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-10-18 21:23:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-10-18 21:23:29 +0000 |
commit | afd9ed17d063652a52bf4e9eecd1a1cbe2b3b941 (patch) | |
tree | aca03183e6ebdc938cf533173355123221707206 | |
parent | 7c3317ce2ee9c5601d87a32d8a592b80bb2559f6 (diff) |
you do not call fclose() on a file descriptor; ok cloder
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 9333a0c0ff5..52619ff1a96 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.171 2006/04/21 17:42:50 deraadt Exp $ */ +/* $OpenBSD: ftpd.c,v 1.172 2006/10/18 21:23:28 deraadt Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -70,7 +70,7 @@ static const char copyright[] = static const char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94"; #else static const char rcsid[] = - "$OpenBSD: ftpd.c,v 1.171 2006/04/21 17:42:50 deraadt Exp $"; + "$OpenBSD: ftpd.c,v 1.172 2006/10/18 21:23:28 deraadt Exp $"; #endif #endif /* not lint */ @@ -565,7 +565,7 @@ main(int argc, char *argv[]) lreply(530, "%s", line); } (void) fflush(stdout); - (void) fclose(fd); + (void) close(fd); reply(530, "Connection from IPv4 mapped address is not supported."); exit(0); |