summaryrefslogtreecommitdiff
path: root/usr.bin/skeyaudit
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-23 06:31:19 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-23 06:31:19 +0000
commitf219a62337bf5ea63dd17aef1db086f6ca4b4c5b (patch)
treecc97b80b7e119262c43b8243c2d1c73ae94e6c3e /usr.bin/skeyaudit
parentdebd6955ee0bba19dc15178df285f74a5aef77a1 (diff)
close keyfile nicely.
Diffstat (limited to 'usr.bin/skeyaudit')
-rw-r--r--usr.bin/skeyaudit/skeyaudit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/skeyaudit/skeyaudit.c b/usr.bin/skeyaudit/skeyaudit.c
index ad02b969f84..da8baf61b51 100644
--- a/usr.bin/skeyaudit/skeyaudit.c
+++ b/usr.bin/skeyaudit/skeyaudit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyaudit.c,v 1.3 1997/07/23 05:17:46 millert Exp $ */
+/* $OpenBSD: skeyaudit.c,v 1.4 1997/07/23 06:31:17 millert Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -98,6 +98,7 @@ main(argc, argv)
case 1: /* Unknown user */
warnx("%s is not listed in /etc/skeykeys", name);
}
+ (void)fclose(mp->keyfile);
/* Run sendmail as user not root */
seteuid(getuid());