1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-25 01:18:15 +00:00

Fix some variable names and types related to dynamic-x support in hashes.c

This commit is contained in:
jsteube 2023-11-19 11:45:24 +00:00
parent b906a145ca
commit 9269229c03

View File

@ -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));