]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Incorrect null pointer check
authorafshinpir <afshinpir@users.noreply.github.com>
Wed, 29 Mar 2023 22:26:44 +0000 (11:26 +1300)
committerTodd Short <todd.short@me.com>
Fri, 31 Mar 2023 19:09:18 +0000 (15:09 -0400)
CLA: trivial
There is an incorrect null pointer check and this ccommit resolves it.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/20646)

crypto/evp/keymgmt_meth.c

index 796152e388caa9d4ef69868333f1113fd0410157..e7ec8ddc47605325f0ec4f0e23c0af74810fca0f 100644 (file)
@@ -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);
 }