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++) {