diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-29 15:22:18 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-04-29 16:47:41 +0100 |
commit | b8c51459aa5b5b6b78cce56a7b898944f5314550 (patch) | |
tree | 4f9e7ce4b911421bed40d32cee1e547bbac0e38b /crypto | |
parent | 9d7ec8090ec1f131825c1bd087969c2e88750385 (diff) |
Remove some dead code from EC_GROUP_check()
EC_GROUP_check() was obtaining a temporary BIGNUM from the BN_CTX, but
then not using it.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ec/ec_check.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/ec/ec_check.c b/crypto/ec/ec_check.c index 601559f4c4..496b5fc7d1 100644 --- a/crypto/ec/ec_check.c +++ b/crypto/ec/ec_check.c @@ -73,9 +73,6 @@ int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx) goto err; } } - BN_CTX_start(ctx); - if ((order = BN_CTX_get(ctx)) == NULL) - goto err; /* check the discriminant */ if (!EC_GROUP_check_discriminant(group, ctx)) { @@ -114,8 +111,6 @@ int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx) ret = 1; err: - if (ctx != NULL) - BN_CTX_end(ctx); BN_CTX_free(new_ctx); EC_POINT_free(point); return ret; |