diff options
author | afshinpir <afshinpir@users.noreply.github.com> | 2023-03-30 11:26:44 +1300 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2023-03-31 15:09:18 -0400 |
commit | 6469043bbabc9728aed61d7708c32e2ae319be1d (patch) | |
tree | 3b69f4898e15a51ed51ff546ad844f6d575b07df /crypto | |
parent | 4befe81a99b89c52b749a87eece82c1cba4fab12 (diff) | |
download | openssl-new-6469043bbabc9728aed61d7708c32e2ae319be1d.tar.gz |
Incorrect null pointer check
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)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/keymgmt_meth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |