aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-13 01:24:56 +0100
committerMattias Andrée <maandree@kth.se>2022-02-13 01:24:56 +0100
commitdf1f6bd41fc6b5da11bd574d00f4b164ae16a787 (patch)
tree0b00b5f7a3cabfd037674a9e39ccf57eaa680174
parentFix typo (diff)
downloadlibar2-df1f6bd41fc6b5da11bd574d00f4b164ae16a787.tar.gz
libar2-df1f6bd41fc6b5da11bd574d00f4b164ae16a787.tar.bz2
libar2-df1f6bd41fc6b5da11bd574d00f4b164ae16a787.tar.xz
Bug fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
-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;