From 6469043bbabc9728aed61d7708c32e2ae319be1d Mon Sep 17 00:00:00 2001 From: afshinpir Date: Thu, 30 Mar 2023 11:26:44 +1300 Subject: Incorrect null pointer check CLA: trivial There is an incorrect null pointer check and this ccommit resolves it. Reviewed-by: Shane Lontis Reviewed-by: Paul Dale Reviewed-by: Todd Short (Merged from https://github.com/openssl/openssl/pull/20646) --- crypto/evp/keymgmt_meth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/evp') diff --git a/crypto/evp/keymgmt_meth.c b/crypto/evp/keymgmt_meth.c index 796152e388..e7ec8ddc47 100644 --- a/crypto/evp/keymgmt_meth.c +++ b/crypto/evp/keymgmt_meth.c @@ -390,7 +390,7 @@ void *evp_keymgmt_gen(const EVP_KEYMGMT *keymgmt, void *genctx, void evp_keymgmt_gen_cleanup(const EVP_KEYMGMT *keymgmt, void *genctx) { - if (keymgmt->gen != NULL) + if (keymgmt->gen_cleanup != NULL) keymgmt->gen_cleanup(genctx); } -- cgit v1.2.1