From: Dr. Stephen Henson Date: Wed, 26 Oct 2011 16:43:14 +0000 (+0000) Subject: PR: 2632 X-Git-Tag: OpenSSL_1_0_0f~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f53337b89c20b90baa4937e0f80ff0deac299da1;p=oweals%2Fopenssl.git PR: 2632 Submitted by: emmanuel.azencot@bull.net Reviewed by: steve Return -1 immediately if not affine coordinates as BN_CTX has not been set up. --- diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index af94458ca7..03deae6674 100644 --- a/crypto/ec/ec2_smpl.c +++ b/crypto/ec/ec2_smpl.c @@ -887,7 +887,7 @@ int ec_GF2m_simple_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_ field_sqr = group->meth->field_sqr; /* only support affine coordinates */ - if (!point->Z_is_one) goto err; + if (!point->Z_is_one) return -1; if (ctx == NULL) {