From a7bc745ae331f54bec23007ab0c99835b7a3f92c Mon Sep 17 00:00:00 2001 From: mmcc Date: Thu, 15 Oct 2015 06:35:54 +0000 Subject: [PATCH] A classic case for bzero() -> explicit_bzero() ok deraadt@ --- sbin/isakmpd/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/isakmpd/hash.c b/sbin/isakmpd/hash.c index aa8de2afb6a..8c535374aa4 100644 --- a/sbin/isakmpd/hash.c +++ b/sbin/isakmpd/hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.c,v 1.23 2013/03/21 04:30:14 deraadt Exp $ */ +/* $OpenBSD: hash.c,v 1.24 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); } /* -- 2.20.1