explicit_bzero() for isakmpd(8)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

explicit_bzero() for isakmpd(8)

Michael McConville-2
Index: sbin/isakmpd/hash.c
===================================================================
RCS file: /cvs/src/sbin/isakmpd/hash.c,v
retrieving revision 1.23
diff -u -p -r1.23 hash.c
--- sbin/isakmpd/hash.c 21 Mar 2013 04:30:14 -0000 1.23
+++ sbin/isakmpd/hash.c 1 Oct 2015 00:10:23 -0000
@@ -148,7 +148,7 @@ hmac_init(struct hash *hash, unsigned ch
  hash->Init(hash->ctx2);
  hash->Update(hash->ctx2, key, blocklen);
 
- bzero(key, blocklen);
+ explicit_bzero(key, blocklen);
 }
 
 /*