summaryrefslogtreecommitdiffstats
path: root/crypto
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 18:09:00 +0200
commit44a8fced976eb2ec3024c6c81874ea74c81f2695 (patch)
tree5e78cfe7f471cd014a460d25e1b503e26946c5fb /crypto
parent4ff07f4c71d762dc66f7ee729c200794c491e2c2 (diff)
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 Conflicts: crypto/ec/ectest.c Conflicts: crypto/ec/ec.h
Diffstat (limited to 'crypto')
-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 b2390882b9..1dc35d72a0 100644
--- a/crypto/ec/ecp_smpl.c
+++ b/crypto/ec/ecp_smpl.c
@@ -1676,8 +1676,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);
}