]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a mem leak when the FIPS provider is used in a different thread
authorMatt Caswell <matt@openssl.org>
Mon, 25 Sep 2023 15:44:47 +0000 (16:44 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 27 Sep 2023 16:23:04 +0000 (17:23 +0100)
commitbe203ea3d3a60a881993d1f7552084996d34ba0a
tree3c080b7221229a5d1b6b2649cba90bc35ed3ced0
parent1a18596149a325a679f8244bac52b6796dfcc48e
Fix a mem leak when the FIPS provider is used in a different thread

We were neglecting to register the main thread to receive thread stop
notifications. This is important if the thread that starts the FIPS
provider is not the same one that is used when OPENSSL_cleanup() is
called.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21964)
crypto/initthread.c
include/crypto/context.h
providers/fips/fipsprov.c