diff --git a/docs/changes.txt b/docs/changes.txt index 8925a98ba..ee94d1cb0 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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 diff --git a/src/interface.c b/src/interface.c index 052e04e33..b522d7eea 100644 --- a/src/interface.c +++ b/src/interface.c @@ -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) { diff --git a/src/user_options.c b/src/user_options.c index 544abfc0c..f22c495b8 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -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);