summaryrefslogtreecommitdiff
path: root/usr.bin/skeyaudit
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-04-28 20:58:36 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-04-28 20:58:36 +0000
commitb605a8e06b128871ca9dfc37360548b403548215 (patch)
tree212880eaea3a91586d347c1d49b0823eff7574aa /usr.bin/skeyaudit
parent7beb964fdeff2332cc07a4bb9d426c0325365a7c (diff)
Don't try to close key.keyfile in -a mode, skeygetnext() will have
already done it and we are headed for exit anyway.
Diffstat (limited to 'usr.bin/skeyaudit')
-rw-r--r--usr.bin/skeyaudit/skeyaudit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/skeyaudit/skeyaudit.c b/usr.bin/skeyaudit/skeyaudit.c
index 3fa9e602712..7a94c3252f4 100644
--- a/usr.bin/skeyaudit/skeyaudit.c
+++ b/usr.bin/skeyaudit/skeyaudit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyaudit.c,v 1.15 2003/03/14 04:29:04 millert Exp $ */
+/* $OpenBSD: skeyaudit.c,v 1.16 2003/04/28 20:58:35 millert Exp $ */
/*
* Copyright (c) 1997, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -96,8 +96,6 @@ main(int argc, char **argv)
}
if (ch == -1)
errx(-1, "cannot open %s", _PATH_SKEYDIR);
- else
- (void)fclose(key.keyfile);
} else {
if ((pw = getpwuid(getuid())) == NULL)
errx(1, "no passwd entry for uid %u", getuid());