summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-09-06 21:02:32 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-09-06 21:02:32 +0000
commit78473e60bb2c426f70ab278d5c305545735c23fd (patch)
treee20def654ed67292df71852853006f6aaa5d45b6 /usr.bin
parent599496afc46c6765362515fbdd25c409384f4d1e (diff)
After recent changes, we need to clear hash, not s1.
From Scott Cheloha ok deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/lock/lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c
index 1e94e51cc5f..2d5a11ebf57 100644
--- a/usr.bin/lock/lock.c
+++ b/usr.bin/lock/lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lock.c,v 1.40 2017/07/08 22:27:17 tedu Exp $ */
+/* $OpenBSD: lock.c,v 1.41 2017/09/06 21:02:31 tb Exp $ */
/* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */
/*
@@ -211,7 +211,7 @@ main(int argc, char *argv[])
}
} else if (crypt_checkpass(s, hash) == 0) {
explicit_bzero(s, sizeof(s));
- explicit_bzero(s1, sizeof(s1));
+ explicit_bzero(hash, sizeof(hash));
break;
}
putc('\a', stderr);