1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 19:58:25 +00:00

Fix potfile handling in case of duplicate salts in hashlist

This commit is contained in:
jsteube 2016-11-07 16:10:16 +01:00
parent 69804dc5f7
commit c02a0cbf3f

View File

@ -1159,6 +1159,15 @@ int hashes_init_stage2 (hashcat_ctx_t *hashcat_ctx)
salts_cnt++;
}
hashes_buf[hashes_pos].salt = salt_buf;
if (hashconfig->esalt_size)
{
char *esalts_buf_new_ptr = ((char *) esalts_buf_new) + (salts_cnt * hashconfig->esalt_size);
hashes_buf[hashes_pos].esalt = esalts_buf_new_ptr;
}
}
salt_buf->digests_cnt++;