mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
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)
This commit is contained in:
parent
eaf0879439
commit
6bd07949e5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user