summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2018-07-25 11:08:48 +1000
committerPauli <paul.dale@oracle.com>2018-07-26 06:58:44 +1000
commit7c226dfc434dcd0c8a3240df166b7561a8b51b0f (patch)
treedd3a3875725ce3e85c2ca1b0f2bc41823fc5a705 /crypto
parent037241bf046be8cfc7e9216959393dd20b06fc21 (diff)
Fixed issue where DRBG_CTR fails if NO_DF is used - when entropy is called
Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/6778)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/rand_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index d31735c5c4..6123d148a4 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -174,7 +174,7 @@ size_t rand_drbg_get_entropy(RAND_DRBG *drbg,
if (RAND_DRBG_generate(drbg->parent,
buffer, bytes_needed,
prediction_resistance,
- (unsigned char *)drbg, sizeof(*drbg)) != 0)
+ NULL, 0) != 0)
bytes = bytes_needed;
rand_drbg_unlock(drbg->parent);