1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fix allocation buffer for --dynamic-x in hashes_init_stage2()

This commit is contained in:
jsteube 2023-11-26 07:31:18 +00:00
parent 810c65f908
commit e15169bd49

View File

@ -2020,7 +2020,7 @@ int hashes_init_stage2 (hashcat_ctx_t *hashcat_ctx)
hashinfo_t **hash_info = NULL; hashinfo_t **hash_info = NULL;
if ((user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)) if ((user_options->username == true) || (user_options->dynamic_x == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT))
{ {
hash_info = (hashinfo_t **) hccalloc (hashes_cnt, sizeof (hashinfo_t *)); hash_info = (hashinfo_t **) hccalloc (hashes_cnt, sizeof (hashinfo_t *));
} }