summaryrefslogtreecommitdiff
path: root/usr.bin
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
parentdebd6955ee0bba19dc15178df285f74a5aef77a1 (diff)
close keyfile nicely.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/skeyaudit/skeyaudit.c3
-rw-r--r--usr.bin/skeyinfo/skeyinfo.c3
2 files changed, 4 insertions, 2 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());
diff --git a/usr.bin/skeyinfo/skeyinfo.c b/usr.bin/skeyinfo/skeyinfo.c
index 4b1085eb152..ab48750b7e8 100644
--- a/usr.bin/skeyinfo/skeyinfo.c
+++ b/usr.bin/skeyinfo/skeyinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyinfo.c,v 1.2 1997/07/23 04:14:46 millert Exp $ */
+/* $OpenBSD: skeyinfo.c,v 1.3 1997/07/23 06:31:18 millert Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -104,6 +104,7 @@ main(argc, argv)
case 1: /* Unknown user */
warnx("%s is not listed in /etc/skeykeys", name);
}
+ (void)fclose(mp->keyfile);
exit(errs);
}