diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-09-06 21:02:32 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-09-06 21:02:32 +0000 |
commit | 78473e60bb2c426f70ab278d5c305545735c23fd (patch) | |
tree | e20def654ed67292df71852853006f6aaa5d45b6 /usr.bin | |
parent | 599496afc46c6765362515fbdd25c409384f4d1e (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.c | 4 |
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); |