summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-26 16:46:20 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-26 16:46:20 +0000
commit9ab6d6813ec544a15f6aea3d4af83629fa1eb4e5 (patch)
tree524beb84abe8e5edf1a879f546450a46cffa29c8 /crypto
parent45e5f551acf65e1b2c36161e356637045cc5f793 (diff)
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.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ec/ec2_smpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c
index f37347b5e1..9a9476f0c1 100644
--- a/crypto/ec/ec2_smpl.c
+++ b/crypto/ec/ec2_smpl.c
@@ -556,7 +556,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)
{