Ensure we call the cleanup() function when cleaning an EVP_CIPHER_CTX
authorMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2022 11:08:49 +0000 (12:08 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 3 Oct 2022 14:01:12 +0000 (15:01 +0100)
commitf817a7439eaa705429cf699dd0485e665b0ffc49
tree3a565012d449d707affffd711ae912446f4715f1
parent25d47cccf203c3b71171e78865e48ea061a039a8
Ensure we call the cleanup() function when cleaning an EVP_CIPHER_CTX

In some circumstances we were not calling the cleanup() function to
remove cipher specific data from an EVP_CIPHER_CTX.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19300)
crypto/evp/evp_enc.c