From d82d79dffe59b9282d6eb00c4b2ee93f9fcd2e75 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Thu, 24 Jul 2014 18:37:54 -0700 Subject: [PATCH] "EC_POINT_invert" was checking "dbl" function pointer instead of "invert". PR#2569 (Imported from upstream's 4ccc2c19e299741c8e0a8678a13f40e032709e9c) Change-Id: Id6f5181ea99401145d7b3c4074b292cae8a1c660 --- crypto/ec/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec.c b/crypto/ec/ec.c index 5e3325d5..dcb9083c 100644 --- a/crypto/ec/ec.c +++ b/crypto/ec/ec.c @@ -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; }