]> git.ipfire.org Git - thirdparty/openssl.git/commit
Don't leak the OSSL_LIB_CTX in the event of a failure to load the FIPS module
authorMatt Caswell <matt@openssl.org>
Tue, 27 Jul 2021 15:31:20 +0000 (16:31 +0100)
committerPauli <pauli@openssl.org>
Wed, 28 Jul 2021 00:34:53 +0000 (10:34 +1000)
commit09f38299ccc006e0ce7e94897250e995ec2fc337
treead56395ce1f2bb74d0badc39cc94ea6c5b8d7540
parent2a7855fb2596048e5038afa5e49a02853297df6d
Don't leak the OSSL_LIB_CTX in the event of a failure to load the FIPS module

Ensure we free the OSSL_LIB_CTX on the error path.

Fixes #16163

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16168)
providers/fips/fipsprov.c