Fixed internal access on module option attribute OPTS_TYPE_SUGGEST_KG with the result that it was unused

pull/2512/head
Jens Steube 4 years ago
parent 36480b99c1
commit 9560bfc7a4

@ -11,6 +11,7 @@
##
- Fixed too early execution of some module functions which could make use of non-final values opts_type and opti_type
- Fixed internal access on module option attribute OPTS_TYPE_SUGGEST_KG with the result that it was unused
* changes v6.1.0 -> v6.1.1

@ -296,7 +296,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
}
else
{
if (hashconfig->opti_type & OPTS_TYPE_SUGGEST_KG)
if (hashconfig->opts_type & OPTS_TYPE_SUGGEST_KG)
{
if (user_options->quiet == false)
{

@ -2702,8 +2702,14 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx)
return -1;
}
const bool quiet_save = user_options->quiet;
user_options->quiet = true;
const int rc = hashconfig_init (hashcat_ctx);
user_options->quiet = quiet_save;
if (rc == -1) return -1;
hashconfig_destroy (hashcat_ctx);

Loading…
Cancel
Save