From 168eb86a801a06ac39dbe676f60767d5e1e1ca5d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 10 Jan 2011 02:44:19 +0000 Subject: zero another intermediate key storage area --- sys/dev/rnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/rnd.c') 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)); } -- cgit v1.2.3