From 0176daa03ef1d7c09d6aa56d5cbd61ef1d17637d Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 29 Apr 2023 19:16:17 +0000 Subject: [PATCH] Fix a bug in self-test section. Hashcat used the salt_repeat value of the first hash not the self-test hash --- src/selftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selftest.c b/src/selftest.c index 977c38682..9c80374af 100644 --- a/src/selftest.c +++ b/src/selftest.c @@ -624,7 +624,7 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param salt_t *salt_buf = &hashes->st_salts_buf[salt_pos]; - const u32 salt_repeats = hashes->salts_buf[salt_pos].salt_repeats; + const u32 salt_repeats = salt_buf->salt_repeats; for (u32 salt_repeat = 0; salt_repeat <= salt_repeats; salt_repeat++) {