Fix broken change from b3d113e.
authorPauli <paul.dale@oracle.com>
Thu, 28 Mar 2019 23:24:07 +0000 (09:24 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 28 Mar 2019 23:24:07 +0000 (09:24 +1000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8606)

crypto/rand/rand_lib.c

index 23abbde1568059e7421a19be764710b53ce17af4..a298b7515be2225eb0a73a0ec64db96a80afe8e6 100644 (file)
@@ -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;