diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2004-05-25 01:40:27 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2004-05-25 01:40:27 +0000 |
| commit | e99c7b0d2c25cdc650bbe3ccb54b7c6cbd4014fa (patch) | |
| tree | b97fb2c20b88013ef1f6732822fd63ea301f42bc /libexec | |
| parent | a2165cbdce4481fe645fd3bdc5c2729b78d8634f (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/tftpd/tftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 4267ebdfbbf7..7eadc9f59c2e 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -588,7 +588,8 @@ validate_access(char **filep, int mode) return (errno + 100); file = fdopen(fd, (mode == RRQ)? "r":"w"); if (file == NULL) { - return errno+100; + close(fd); + return (errno + 100); } return (0); } |
