diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-10-26 16:43:34 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-10-26 16:43:34 +0000 |
commit | 32cf5baeae21774db04af2ad2d74567a617c6fec (patch) | |
tree | 3bc7eeff56530aed5cef05a0852a3e0619b0aa44 /crypto/ec/ec2_smpl.c | |
parent | 45906fe63b350d4271d70771c85fb9a12dd82aa5 (diff) | |
download | openssl-32cf5baeae21774db04af2ad2d74567a617c6fec.zip openssl-32cf5baeae21774db04af2ad2d74567a617c6fec.tar.gz openssl-32cf5baeae21774db04af2ad2d74567a617c6fec.tar.bz2 |
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/ec/ec2_smpl.c')
-rw-r--r-- | crypto/ec/ec2_smpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index f37347b..9a9476f 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) { |