From c02a0cbf3f579c4748ec1db6546b4aea6b4be20e Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 7 Nov 2016 16:10:16 +0100 Subject: [PATCH] Fix potfile handling in case of duplicate salts in hashlist --- src/hashes.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hashes.c b/src/hashes.c index bf97859d4..b3606829e 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -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++;