summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2016-08-20 13:55:17 -0400
committerKurt Roeckx <kurt@roeckx.be>2016-08-22 21:20:31 +0200
commit01f879d3e3fe5bdcf290b802a3c44a2bdde2b059 (patch)
treede33593a6e0b915d72e420e96ffe01b5283fa98c /crypto
parent67e11f1d44b85758f01b4905d64c4c49476c1db5 (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')
-rw-r--r--crypto/evp/pmeth_gn.c5
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);