projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert memset calls to OPENSSL_cleanse
[openssl.git]
/
crypto
/
rand
/
rand_unix.c
diff --git
a/crypto/rand/rand_unix.c
b/crypto/rand/rand_unix.c
index e231ecdb8287d1cb482824798dbf8564d9983f9d..ecba2dc9841424ad26d85fbcbb446c858db287f9 100644
(file)
--- a/
crypto/rand/rand_unix.c
+++ b/
crypto/rand/rand_unix.c
@@
-134,7
+134,7
@@
int RAND_poll(void)
rnd >>= 8;
}
RAND_add(buf, sizeof(buf), ENTROPY_NEEDED);
-
memset(buf, 0
, sizeof(buf));
+
OPENSSL_cleanse(buf
, sizeof(buf));
return 1;
}