Commit 21311777 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Fix a possible crash in rand_drbg_get_entropy

parent 41349b5e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -151,6 +151,8 @@ size_t rand_drbg_get_entropy(RAND_DRBG *drbg,
        pool->entropy_requested = entropy;
    } else {
        pool = rand_pool_new(entropy, min_len, max_len);
        if (pool == NULL)
            return 0;
    }

    if (drbg->parent) {