Blame SOURCES/0055-nonlegacy-fetch-null-deref.patch
|
|
021e03 |
diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c
|
|
|
021e03 |
index e1da724bd2f4..2bee5ef19447 100644
|
|
|
021e03 |
--- a/crypto/core_namemap.c
|
|
|
021e03 |
+++ b/crypto/core_namemap.c
|
|
|
021e03 |
@@ -409,14 +409,16 @@ static void get_legacy_cipher_names(const OBJ_NAME *on, void *arg)
|
|
|
021e03 |
{
|
|
|
021e03 |
const EVP_CIPHER *cipher = (void *)OBJ_NAME_get(on->name, on->type);
|
|
|
021e03 |
|
|
|
021e03 |
- get_legacy_evp_names(NID_undef, EVP_CIPHER_get_type(cipher), NULL, arg);
|
|
|
021e03 |
+ if (cipher != NULL)
|
|
|
021e03 |
+ get_legacy_evp_names(NID_undef, EVP_CIPHER_get_type(cipher), NULL, arg);
|
|
|
021e03 |
}
|
|
|
021e03 |
|
|
|
021e03 |
static void get_legacy_md_names(const OBJ_NAME *on, void *arg)
|
|
|
021e03 |
{
|
|
|
021e03 |
const EVP_MD *md = (void *)OBJ_NAME_get(on->name, on->type);
|
|
|
021e03 |
|
|
|
021e03 |
- get_legacy_evp_names(0, EVP_MD_get_type(md), NULL, arg);
|
|
|
021e03 |
+ if (md != NULL)
|
|
|
021e03 |
+ get_legacy_evp_names(0, EVP_MD_get_type(md), NULL, arg);
|
|
|
021e03 |
}
|
|
|
021e03 |
|
|
|
021e03 |
static void get_legacy_pkey_meth_names(const EVP_PKEY_ASN1_METHOD *ameth,
|