diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-09-19 18:53:39 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-09-22 00:10:53 +0200 |
commit | 12f14b1d8f996dd5b0ab33e961b28f443ba56d22 (patch) | |
tree | a420c29e8e30e62b43c57ba33d9fe59beeb9b9aa /crypto/ec | |
parent | 27918b7c25d0c916315cb2f9ee026bed41f83ee9 (diff) |
Fix warning.
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 16e5b45f72cd69b71ca28e84044d2354e068888c)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ecp_nistz256.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c index 521e139093..0ff87ff304 100644 --- a/crypto/ec/ecp_nistz256.c +++ b/crypto/ec/ecp_nistz256.c @@ -1074,6 +1074,7 @@ static int ecp_nistz256_points_mul(const EC_GROUP * group, const BIGNUM * scalars[], BN_CTX * ctx) { int i = 0, ret = 0, no_precomp_for_generator = 0, p_is_infinity = 0; + size_t j; unsigned char p_str[33] = { 0 }; const PRECOMP256_ROW *preComputedTable = NULL; const EC_PRE_COMP *pre_comp = NULL; @@ -1095,8 +1096,8 @@ static int ecp_nistz256_points_mul(const EC_GROUP * group, if ((scalar == NULL) && (num == 0)) return EC_POINT_set_to_infinity(group, r); - for (i = 0; i < num; i++) { - if (group->meth != points[i]->meth) { + for (j = 0; j < num; j++) { + if (group->meth != points[j]->meth) { ECerr(EC_F_NISTZ256_POINTS_MUL, EC_R_INCOMPATIBLE_OBJECTS); return 0; } |