Avoid a null pointer deref on a malloc failure
authorMatt Caswell <matt@openssl.org>
Wed, 24 Feb 2021 15:04:41 +0000 (15:04 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 8 Mar 2021 15:02:07 +0000 (15:02 +0000)
commitec961f866ac048a2d3dfd6adcfa95042114bef52
treef72eff219a0b8c52e5f5c96368816c32ca917f09
parente8afd78af69d2229a5c36f542b13a54927709901
Avoid a null pointer deref on a malloc failure

Make sure we were sucessful in creating an EVP_PKEY

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14319)
crypto/evp/p_lib.c