]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
fake_random: Do not overwrite the callback on instatiation
authorTomas Mraz <tomas@openssl.org>
Wed, 24 Feb 2021 15:44:41 +0000 (16:44 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 Feb 2021 13:01:54 +0000 (14:01 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14299)

test/testutil/fake_random.c

index 710e707234d6f6f0ff58cca86a64e3bd8eee7f41..7e18e72d45c847e4b011e7cfe68795f50158eabb 100644 (file)
@@ -33,7 +33,6 @@ static OSSL_FUNC_rand_enable_locking_fn fake_rand_enable_locking;
 static void *fake_rand_newctx(void *provctx, void *parent,
                               const OSSL_DISPATCH *parent_dispatch)
 {
-    fake_rand.cb = NULL;
     fake_rand.state = EVP_RAND_STATE_UNINITIALISED;
     return &fake_rand;
 }