From 6091894b72b226bcd3653d42f472d2c9da0ff731 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 20 Oct 2019 06:25:29 -0400 Subject: [PATCH] fix: unshadow --- client/hardnested/hardnested_bruteforce.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/hardnested/hardnested_bruteforce.c b/client/hardnested/hardnested_bruteforce.c index 4af190d71..682257415 100644 --- a/client/hardnested/hardnested_bruteforce.c +++ b/client/hardnested/hardnested_bruteforce.c @@ -250,16 +250,16 @@ void prepare_bf_test_nonces(noncelist_t *nonces, uint8_t best_first_byte) { uint32_t bf_test_nonce_temp[4]; uint8_t bf_test_nonce_par_temp[4]; uint8_t bf_test_nonce_2nd_byte_temp[4]; - for (uint8_t i = 0; i < 4 && i < nonces_to_bruteforce; i++) { - bf_test_nonce_temp[i] = bf_test_nonce[best_4[i]]; + for (uint8_t j = 0; j < 4 && j < nonces_to_bruteforce; j++) { + bf_test_nonce_temp[j] = bf_test_nonce[best_4[j]]; - bf_test_nonce_par_temp[i] = bf_test_nonce_par[best_4[i]]; - bf_test_nonce_2nd_byte_temp[i] = bf_test_nonce_2nd_byte[best_4[i]]; + bf_test_nonce_par_temp[j] = bf_test_nonce_par[best_4[j]]; + bf_test_nonce_2nd_byte_temp[j] = bf_test_nonce_2nd_byte[best_4[j]]; } - for (uint8_t i = 0; i < 4 && i < nonces_to_bruteforce; i++) { - bf_test_nonce[i] = bf_test_nonce_temp[i]; - bf_test_nonce_par[i] = bf_test_nonce_par_temp[i]; - bf_test_nonce_2nd_byte[i] = bf_test_nonce_2nd_byte_temp[i]; + for (uint8_t j = 0; j < 4 && j < nonces_to_bruteforce; j++) { + bf_test_nonce[j] = bf_test_nonce_temp[j]; + bf_test_nonce_par[j] = bf_test_nonce_par_temp[j]; + bf_test_nonce_2nd_byte[j] = bf_test_nonce_2nd_byte_temp[j]; } }