aboutsummaryrefslogtreecommitdiffstats
path: root/libar2_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'libar2_hash.c')
-rw-r--r--libar2_hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libar2_hash.c b/libar2_hash.c
index 7f3cf3b..2a800aa 100644
--- a/libar2_hash.c
+++ b/libar2_hash.c
@@ -572,6 +572,7 @@ libar2_hash(void *hash, void *msg, size_t msglen, struct libar2_argon2_parameter
tn = ctx->get_ready_threads(ts, ELEMSOF(ts), ctx);
if (!tn)
goto fail;
+ ti = 0;
}
tparams[ti].pass = (uint_least32_t)p;
tparams[ti].lane = (uint_least32_t)i;