projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanse memory using the new OPENSSL_cleanse() function.
[oweals/openssl.git]
/
crypto
/
rand
/
rand_unix.c
diff --git
a/crypto/rand/rand_unix.c
b/crypto/rand/rand_unix.c
index 4175576fcc92d5fab149e4b2afac6dad392f3b44..a776e522431b58e2f1034e3b3ed2a88a3b7c3f90 100644
(file)
--- a/
crypto/rand/rand_unix.c
+++ b/
crypto/rand/rand_unix.c
@@
-215,7
+215,7
@@
int RAND_poll(void)
if (n > 0)
{
RAND_add(tmpbuf,sizeof tmpbuf,n);
-
memset(tmpbuf,0
,n);
+
OPENSSL_cleanse(tmpbuf
,n);
}
#endif