PR: 2632
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Oct 2011 16:42:48 +0000 (16:42 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Oct 2011 16:42:48 +0000 (16:42 +0000)
Submitted by: emmanuel.azencot@bull.net
Reviewed by: steve

Return -1 immediately if not affine coordinates as BN_CTX has not been
set up.

crypto/ec/ec2_smpl.c

index 1aae1997d8d21a07953fffb67b25c4fa22672f3c..c06b3b667f0bfedd793fe094f869abf00c0a60c1 100644 (file)
@@ -821,7 +821,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)
                {