diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/skeyaudit/skeyaudit.c | 3 | ||||
-rw-r--r-- | usr.bin/skeyinfo/skeyinfo.c | 3 |
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); } |