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)
(cherry picked from commit
6469043bbabc9728aed61d7708c32e2ae319be1d)
void evp_keymgmt_gen_cleanup(const EVP_KEYMGMT *keymgmt, void *genctx)
{
- if (keymgmt->gen != NULL)
+ if (keymgmt->gen_cleanup != NULL)
keymgmt->gen_cleanup(genctx);
}