summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-10 02:44:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-10 02:44:19 +0000
commit168eb86a801a06ac39dbe676f60767d5e1e1ca5d (patch)
treebc290d7806eed7b1f06cf2ecf418a700b5a75082 /sys/dev/rnd.c
parent7488d26d129e5ac43fe1a3ce02d93d215ad7f5a9 (diff)
zero another intermediate key storage area
Diffstat (limited to 'sys/dev/rnd.c')
-rw-r--r--sys/dev/rnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index 5be1ca00d1d..cdc6269aa13 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.132 2011/01/09 22:40:51 deraadt Exp $ */
+/* $OpenBSD: rnd.c,v 1.133 2011/01/10 02:44:18 deraadt Exp $ */
/*
* Copyright (c) 2011 Theo de Raadt.
@@ -507,6 +507,7 @@ extract_entropy(u_int8_t *buf, int nbytes)
}
/* Wipe data from memory */
+ bzero(extract_pool, sizeof(extract_pool));
bzero(&tmp, sizeof(tmp));
bzero(buffer, sizeof(buffer));
}