summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-26 16:43:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-26 16:43:23 +0000
commita8d72c79db4c0f8f4d893fc037a298fd0cc8465a (patch)
treef1d5a0aab955f964e32bbe24168cb3dcb83d7caa /crypto
parent1f713e010658a65101b0d36304ceaba532b412a3 (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 2028b4d327..e0e59c7d82 100644
--- a/crypto/ec/ec2_smpl.c
+++ b/crypto/ec/ec2_smpl.c
@@ -562,7 +562,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)
{