Avoid using EC_GROUP_clear_free() internally
There is nothing confidential in `EC_GROUP` so really having a `EC_GROUP_clear_free` function at all does not make much sense anymore. See https://github.com/openssl/openssl/issues/9822 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9874)
This commit is contained in:
parent
df3d1e84b3
commit
cdf8d0db79
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
|
|||
return NULL;
|
||||
|
||||
if (!EC_GROUP_set_curve(ret, p, a, b, ctx)) {
|
||||
EC_GROUP_clear_free(ret);
|
||||
EC_GROUP_free(ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ EC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a,
|
|||
return NULL;
|
||||
|
||||
if (!EC_GROUP_set_curve(ret, p, a, b, ctx)) {
|
||||
EC_GROUP_clear_free(ret);
|
||||
EC_GROUP_free(ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue