summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-03-29 09:24:07 +1000
committerPauli <paul.dale@oracle.com>2019-03-29 09:24:07 +1000
commit711a161f03ef9ed7cd149a22bf1203700c103e96 (patch)
tree4858dbcec59199b9ad0aa48b80ec63854160e3f2
parent0b885f72c2b18c57173e134a03ed013cd1ac361e (diff)
Fix broken change from b3d113e.
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8606)
-rw-r--r--crypto/rand/rand_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 23abbde156..a298b7515b 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -235,8 +235,9 @@ size_t rand_drbg_get_nonce(RAND_DRBG *drbg,
struct {
void * instance;
int count;
- } data = { NULL, 0 };
+ } data;
+ memset(&data, 0, sizeof(data));
pool = rand_pool_new(0, min_len, max_len);
if (pool == NULL)
return 0;