From 6d834ec46e31a20e1c1b994c9a8095fb3deeab41 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 30 Apr 2014 11:33:31 +0200 Subject: [PATCH] OpenSSL: Check the correct pointer in EC_POINT_invert. It looks like this was copied from EC_POINT_dbl() but the check was overlooked when adjusting. Reported-by: plundra on #dragonflybsd Taken-from: OpenBSD --- crypto/openssl/crypto/ec/ec_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/openssl/crypto/ec/ec_lib.c b/crypto/openssl/crypto/ec/ec_lib.c index de9a0cc2b3..e2c4741b5b 100644 --- a/crypto/openssl/crypto/ec/ec_lib.c +++ b/crypto/openssl/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; -- 2.41.0