mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Check the return of EVP_KDF_fetch()
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18096)
This commit is contained in:
parent
801c638c50
commit
02119faee3
@ -39,6 +39,8 @@ int ossl_dh_kdf_X9_42_asn1(unsigned char *out, size_t outlen,
|
||||
const char *mdname = EVP_MD_get0_name(md);
|
||||
|
||||
kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X942KDF_ASN1, propq);
|
||||
if (kdf == NULL)
|
||||
return 0;
|
||||
kctx = EVP_KDF_CTX_new(kdf);
|
||||
if (kctx == NULL)
|
||||
goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user