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:09:46 +0000 (15:09 +0100)
commita2893b62333d97c8dfaaf655eaea919d30fb9a7b
tree035c9aad0b362ccc48ccf0458c6f9a66d2856bb6
parent5485c56679d7c49b96e8fc8ca708b0b7e7c03c4b
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)

(cherry picked from commit f817a7439eaa705429cf699dd0485e665b0ffc49)
crypto/evp/evp_enc.c