diff --git a/crypto/ec/ec.c b/crypto/ec/ec.c index 5e3325d54..dcb9083ca 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; }