projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A few more memset()s converted to OPENSSL_cleanse().
[openssl.git]
/
crypto
/
bn
/
bn_rand.c
diff --git
a/crypto/bn/bn_rand.c
b/crypto/bn/bn_rand.c
index e6705f7025bd82e039a7a261f45d1b76820fce15..480817a4b6299cb80141dd0c18501647111ebe9b 100644
(file)
--- a/
crypto/bn/bn_rand.c
+++ b/
crypto/bn/bn_rand.c
@@
-201,7
+201,7
@@
static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
err:
if (buf != NULL)
{
-
memset(buf,0
,bytes);
+
OPENSSL_cleanse(buf
,bytes);
OPENSSL_free(buf);
}
return(ret);