From d8ebedf1acc79cc27ecdeb5d6113e5c340248723 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 13 Feb 2022 01:31:17 +0100 Subject: Bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libar2_hash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libar2_hash.c b/libar2_hash.c index 2a800aa..6ce898c 100644 --- a/libar2_hash.c +++ b/libar2_hash.c @@ -574,10 +574,10 @@ libar2_hash(void *hash, void *msg, size_t msglen, struct libar2_argon2_parameter goto fail; ti = 0; } - tparams[ti].pass = (uint_least32_t)p; - tparams[ti].lane = (uint_least32_t)i; - tparams[ti].slice = (uint_least32_t)s; - if (ctx->run_thread(ts[ti], threaded_fill_segment, &tparams[ti], ctx)) + tparams[ts[ti]].pass = (uint_least32_t)p; + tparams[ts[ti]].lane = (uint_least32_t)i; + tparams[ts[ti]].slice = (uint_least32_t)s; + if (ctx->run_thread(ts[ti], threaded_fill_segment, &tparams[ts[ti]], ctx)) goto fail; ti++; } -- cgit v1.2.3-70-g09d2