From: afshinpir Date: Wed, 29 Mar 2023 22:26:44 +0000 (+1300) Subject: Incorrect null pointer check X-Git-Tag: openssl-3.2.0-alpha1~1038 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6469043bbabc9728aed61d7708c32e2ae319be1d;p=thirdparty%2Fopenssl.git 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) --- diff --git a/crypto/evp/keymgmt_meth.c b/crypto/evp/keymgmt_meth.c index 796152e388c..e7ec8ddc476 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); }