artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9111b50
)
A classic case for bzero() -> explicit_bzero()
author
mmcc
<mmcc@openbsd.org>
Thu, 15 Oct 2015 06:35:54 +0000
(06:35 +0000)
committer
mmcc
<mmcc@openbsd.org>
Thu, 15 Oct 2015 06:35:54 +0000
(06:35 +0000)
ok deraadt@
sbin/isakmpd/hash.c
patch
|
blob
|
history
diff --git
a/sbin/isakmpd/hash.c
b/sbin/isakmpd/hash.c
index
aa8de2a
..
8c53537
100644
(file)
--- a/
sbin/isakmpd/hash.c
+++ b/
sbin/isakmpd/hash.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: hash.c,v 1.2
3 2013/03/21 04:30:14 deraadt Exp $
*/
+/* $OpenBSD: hash.c,v 1.2
4 2015/10/15 06:35:54 mmcc Exp $
*/
/* $EOM: hash.c,v 1.10 1999/04/17 23:20:34 niklas Exp $ */
/*
@@
-148,7
+148,7
@@
hmac_init(struct hash *hash, unsigned char *okey, unsigned int len)
hash->Init(hash->ctx2);
hash->Update(hash->ctx2, key, blocklen);
- bzero(key, blocklen);
+
explicit_
bzero(key, blocklen);
}
/*