diff options
author | Billy Brumley <bbrumley@gmail.com> | 2014-07-21 22:08:23 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-07-21 22:28:09 +0100 |
commit | 4ccc2c19e299741c8e0a8678a13f40e032709e9c (patch) | |
tree | 3923636db8d191569c56ffe7fa56d7e0829a8860 /crypto/ec | |
parent | b5e611a973df5ed974dede2136d3967f10bfd605 (diff) |
"EC_POINT_invert" was checking "dbl" function pointer instead of "invert".
PR#2569
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit cba11f57ce161fd301a72194827327128191de7e)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index de9a0cc2b3..e2c4741b5b 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -942,7 +942,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; |