aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_smpl.c
diff options
context:
space:
mode:
authorBodo Moeller <bodo@openssl.org>2014-08-13 17:37:19 +0200
committerBodo Moeller <bodo@openssl.org>2014-08-13 17:37:19 +0200
commit16602b5cd56f107f478180551dde496d8c84abfc (patch)
tree810bae667ba5bf8b91d2ae6adc246c5eb658a4c9 /crypto/ec/ecp_smpl.c
parent690a2b1fa2c8a7dba0be84dfc052d86b864bedc3 (diff)
downloadopenssl-16602b5cd56f107f478180551dde496d8c84abfc.tar.gz
Further improve/fix ec_GFp_simple_points_make_affine (ecp_smpl.c) and
group_order_tests (ectest.c). Also fix the EC_POINTs_mul documentation (ec.h). Reviewed-by: emilia@openssl.org
Diffstat (limited to 'crypto/ec/ecp_smpl.c')
-rw-r--r--crypto/ec/ecp_smpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecp_smpl.c b/crypto/ec/ecp_smpl.c
index f2cd6f7e55..77bf845bcb 100644
--- a/crypto/ec/ecp_smpl.c
+++ b/crypto/ec/ecp_smpl.c
@@ -1311,8 +1311,8 @@ int ec_GFp_simple_points_make_affine(const EC_GROUP *group, size_t num, EC_POINT
{
for (i = 0; i < num; i++)
{
- if (prod_Z[i] != NULL)
- BN_clear_free(prod_Z[i]);
+ if (prod_Z[i] == NULL) break;
+ BN_clear_free(prod_Z[i]);
}
OPENSSL_free(prod_Z);
}