diff --git a/include/benchmark.h b/include/benchmark.h index 14c9c70ff..ffa0de91b 100644 --- a/include/benchmark.h +++ b/include/benchmark.h @@ -6,6 +6,4 @@ #ifndef _BENCHMARK_H #define _BENCHMARK_H -#define DEFAULT_BENCHMARK_ALGORITHMS_CNT 146 - #endif // _BENCHMARK_H diff --git a/src/benchmark.c b/src/benchmark.c index ba7659f83..7ba0518bb 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -6,7 +6,9 @@ #include "common.h" #include "benchmark.h" -const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[DEFAULT_BENCHMARK_ALGORITHMS_CNT] = +const int DEFAULT_BENCHMARK_ALGORITHMS_CNT = 146; + +const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[] = { 900, 0, diff --git a/src/hashcat.c b/src/hashcat.c index 5662177b5..6bae9fadd 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -95,6 +95,7 @@ extern hc_thread_mutex_t mux_display; extern const unsigned int full01; extern const unsigned int full80; +extern const int DEFAULT_BENCHMARK_ALGORITHMS_CNT; extern const int DEFAULT_BENCHMARK_ALGORITHMS_BUF[]; const int comptime = COMPTIME; @@ -2086,7 +2087,6 @@ static int outer_loop (user_options_t *user_options, user_options_extra_t *user_ */ // if cracked / aborted remove last induction dictionary - induct_ctx_cleanup (induct_ctx); // wait for inner threads @@ -2122,7 +2122,6 @@ static int outer_loop (user_options_t *user_options, user_options_extra_t *user_ } // finally save left hashes - if ((hashes->hashlist_mode == HL_MODE_FILE) && (user_options->remove == true) && (hashes->digests_saved != hashes->digests_done)) { save_hash (user_options, hashconfig, hashes);