Skip to content

Commit

Permalink
PR: 2632
Browse files Browse the repository at this point in the history
Submitted by: emmanuel.azencot@bull.net
Reviewed by: steve

Return -1 immediately if not affine coordinates as BN_CTX has not been
set up.
  • Loading branch information
snhenson committed Oct 26, 2011
1 parent 1f713e0 commit a8d72c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/ec/ec2_smpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a8d72c7

Please sign in to comment.