"EC_POINT_invert" was checking "dbl" function pointer instead of "invert".

PR#2569

(Imported from upstream's 4ccc2c19e299741c8e0a8678a13f40e032709e9c)

Change-Id: Id6f5181ea99401145d7b3c4074b292cae8a1c660
This commit is contained in:
Adam Langley 2014-07-24 18:37:54 -07:00
parent 482b4f189f
commit d82d79dffe

View File

@ -797,7 +797,7 @@ int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx) {
if (group->meth->dbl == 0) {
if (group->meth->invert == 0) {
OPENSSL_PUT_ERROR(EC, EC_POINT_invert, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
return 0;
}