mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
coverity 1462576 Resource leak
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11651)
This commit is contained in:
parent
3e47e7b454
commit
6f0bdf41a3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user