projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d7ec80
)
Remove some dead code from EC_GROUP_check()
author
Matt Caswell
<matt@openssl.org>
Fri, 29 Apr 2016 14:22:18 +0000
(15:22 +0100)
committer
Matt Caswell
<matt@openssl.org>
Fri, 29 Apr 2016 15:47:41 +0000
(16:47 +0100)
EC_GROUP_check() was obtaining a temporary BIGNUM from the BN_CTX, but
then not using it.
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/ec/ec_check.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_check.c
b/crypto/ec/ec_check.c
index 601559f4c488c5e3e0d353561df177b9fa0585a9..496b5fc7d116de8b0b379801a824f8a29a5c7465 100644
(file)
--- 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;