diff options
author | Pauli <pauli@openssl.org> | 2023-09-28 11:47:35 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-10-02 19:18:21 +1100 |
commit | 6bd07949e54f9958eb8a0f9a597ceb3910753ab0 (patch) | |
tree | 546bd733896ff95e13f0673d00c06fc28ff613c4 /crypto/rand | |
parent | eaf08794398ac3caaadffcfd670854bf51f610fa (diff) |
Coverity 1545175: use after free
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/22211)
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_lib.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 7fbbb0275b..14999540ab 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -609,7 +609,6 @@ static EVP_RAND_CTX *rand_new_seed(OSSL_LIB_CTX *libctx) } if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0, NULL)) { ERR_raise(ERR_LIB_RAND, RAND_R_ERROR_INSTANTIATING_DRBG); - EVP_RAND_CTX_free(ctx); goto err; } OPENSSL_free(props); |