From 9269229c03204c8030884e4d668a1e2b0a4a8e3f Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 19 Nov 2023 11:45:24 +0000 Subject: [PATCH] Fix some variable names and types related to dynamic-x support in hashes.c --- src/hashes.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hashes.c b/src/hashes.c index a1822c6ba..88f037dcf 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -1003,7 +1003,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx) void *esalts_buf = NULL; void *hook_salts_buf = NULL; - if ((user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)) + if ((user_options->dynamic_x == true) || (user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)) { u64 hash_pos; @@ -1013,6 +1013,11 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx) hashes_buf[hash_pos].hash_info = hash_info; + if (user_options->dynamic_x == true) + { + hash_info->dynamicx = (dynamicx_t *) hcmalloc (sizeof (dynamicx_t)); + } + if (user_options->username == true) { hash_info->user = (user_t *) hcmalloc (sizeof (user_t));