Allocate DRBG additional data pool from non-secure memory
[oweals/openssl.git] / crypto / rand / drbg_lib.c
index abbe0a8ba30f3ece734e8573abb94214c45af8f1..df1e26026189ceb91fd622020cbb92f31bde9efd 100644 (file)
@@ -664,7 +664,7 @@ int RAND_DRBG_bytes(RAND_DRBG *drbg, unsigned char *out, size_t outlen)
     if (drbg->adin_pool == NULL) {
         if (drbg->type == 0)
             goto err;
-        drbg->adin_pool = rand_pool_new(0, 0, drbg->max_adinlen);
+        drbg->adin_pool = rand_pool_new(0, 0, 0, drbg->max_adinlen);
         if (drbg->adin_pool == NULL)
             goto err;
     }