diff options
author | David Benjamin <davidben@google.com> | 2016-08-20 13:55:17 -0400 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-08-22 21:20:31 +0200 |
commit | 01f879d3e3fe5bdcf290b802a3c44a2bdde2b059 (patch) | |
tree | de33593a6e0b915d72e420e96ffe01b5283fa98c /crypto/evp | |
parent | 67e11f1d44b85758f01b4905d64c4c49476c1db5 (diff) |
Don't check for malloc failure twice.
a03f81f4ead24c234dc26e388d86a352685f3948 added a malloc failure check to
EVP_PKEY_keygen, but there already was one.
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #1473
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/pmeth_gn.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/evp/pmeth_gn.c b/crypto/evp/pmeth_gn.c index 6d7b5d7242..6a4d3573ff 100644 --- a/crypto/evp/pmeth_gn.c +++ b/crypto/evp/pmeth_gn.c @@ -154,11 +154,6 @@ int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) if (*ppkey == NULL) return -1; - if (*ppkey == NULL) { - EVPerr(EVP_F_EVP_PKEY_KEYGEN, ERR_R_MALLOC_FAILURE); - return -1; - } - ret = ctx->pmeth->keygen(ctx, *ppkey); if (ret <= 0) { EVP_PKEY_free(*ppkey); |