diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-27 09:25:42 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-30 20:21:33 +1000 |
commit | 6f0bdf41a34d21a0a7abf154c2a454fb5437251e (patch) | |
tree | 75232445eed69ac8fd700c688470ff73b63f1f5b | |
parent | 3e47e7b454fb5e51c4e7efa98f40ea94d6e9c1fa (diff) |
coverity 1462576 Resource leak
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
-rw-r--r-- | crypto/ec/ecx_meth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index d23fcd42b7..a9c71f33aa 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -95,7 +95,7 @@ static int ecx_key_op(EVP_PKEY *pkey, int id, const X509_ALGOR *palg, case EVP_PKEY_ED25519: if (!ED25519_public_from_private(libctx, pubkey, privkey)) { ECerr(EC_F_ECX_KEY_OP, EC_R_FAILED_MAKING_PUBLIC_KEY); - return 0; + goto err; } break; case EVP_PKEY_X448: @@ -104,7 +104,7 @@ static int ecx_key_op(EVP_PKEY *pkey, int id, const X509_ALGOR *palg, case EVP_PKEY_ED448: if (!ED448_public_from_private(libctx, pubkey, privkey)) { ECerr(EC_F_ECX_KEY_OP, EC_R_FAILED_MAKING_PUBLIC_KEY); - return 0; + goto err; } break; } |