summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Brumley <bbrumley@gmail.com>2014-07-21 22:08:23 +0100
committerMatt Caswell <matt@openssl.org>2014-07-21 22:18:40 +0100
commitcba11f57ce161fd301a72194827327128191de7e (patch)
tree07d83d6bff781cb3830352b5849407e1a9463718
parent62352b8138018775a4c085a105fccd9cdcb6323f (diff)
"EC_POINT_invert" was checking "dbl" function pointer instead of "invert".
PR#2569 Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r--crypto/ec/ec_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c
index f7b2025ea6..a295a84f2b 100644
--- a/crypto/ec/ec_lib.c
+++ b/crypto/ec/ec_lib.c
@@ -945,7 +945,7 @@ int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *
int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx)
{
- if (group->meth->dbl == 0)
+ if (group->meth->invert == 0)
{
ECerr(EC_F_EC_POINT_INVERT, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
return 0;