diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-10-11 17:26:23 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-02 11:01:20 +0100 |
commit | a88e97fcace01ecf557b207f04328a72df5110df (patch) | |
tree | 18418437a2046ed33b1701f26f5f0799b7820f78 /crypto/rand | |
parent | bd363ef32403d58a8b41553b5abd602b30073b10 (diff) | |
download | openssl-a88e97fcace01ecf557b207f04328a72df5110df.tar.gz |
Release the drbg in the global default context before engines
Fixes #17995
Fixes #18578
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/19386)
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 7140729bd2..ce95bf6210 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -97,6 +97,7 @@ void ossl_rand_cleanup_int(void) CRYPTO_THREAD_lock_free(rand_meth_lock); rand_meth_lock = NULL; # endif + ossl_release_default_drbg_ctx(); rand_inited = 0; } |