From 209353b6a6947ddb52bfcbfc691356ee435b6477 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 21 Sep 2016 21:19:53 +0200 Subject: [PATCH] Get rid of weak_hash_threshold variable in main --- src/hashcat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/hashcat.c b/src/hashcat.c index 83c0c0d98..099ea1cf6 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -400,7 +400,6 @@ int main (int argc, char **argv) // temporarily start - uint weak_hash_threshold = WEAK_HASH_THRESHOLD; char *session = NULL; uint rp_gen = RP_GEN; uint rp_gen_func_min = RP_GEN_FUNC_MIN; @@ -418,7 +417,6 @@ int main (int argc, char **argv) session = user_options->session; truecrypt_keyfiles = user_options->truecrypt_keyfiles; veracrypt_keyfiles = user_options->veracrypt_keyfiles; - weak_hash_threshold = user_options->weak_hash_threshold; data.attack_mode = user_options->attack_mode; data.restore = user_options->restore; @@ -458,8 +456,8 @@ int main (int argc, char **argv) data.rule_buf_r = user_options->rule_buf_r; - data.rule_len_l = user_options_extra->rule_len_l; - data.rule_len_r = user_options_extra->rule_len_r; + data.rule_len_l = user_options_extra->rule_len_l; + data.rule_len_r = user_options_extra->rule_len_r; data.wordlist_mode = user_options_extra->wordlist_mode; data.attack_kern = user_options_extra->attack_kern; @@ -2801,7 +2799,7 @@ int main (int argc, char **argv) * weak hash check */ - if (weak_hash_threshold >= hashes->salts_cnt) + if (user_options->weak_hash_threshold >= hashes->salts_cnt) { hc_device_param_t *device_param = NULL;