From: Billy Brumley Date: Mon, 21 Jul 2014 21:08:23 +0000 (+0100) Subject: "EC_POINT_invert" was checking "dbl" function pointer instead of "invert". X-Git-Tag: OpenSSL_1_0_0n~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b6b96700170b796cb49e9452010d3abe43237ef7;p=oweals%2Fopenssl.git "EC_POINT_invert" was checking "dbl" function pointer instead of "invert". PR#2569 Reviewed-by: Rich Salz (cherry picked from commit cba11f57ce161fd301a72194827327128191de7e) --- diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index f143ac6203..dd0ebdf585 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -1010,7 +1010,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;