From 534acbaceac1f0603affc74247743f3f4545c47f Mon Sep 17 00:00:00 2001
From: philsmd <philsmd@hashcat.net>
Date: Sat, 9 Jul 2022 12:22:39 +0200
Subject: [PATCH] warning about token length exception was showing incorrect
 values/percentage

---
 src/hashes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hashes.c b/src/hashes.c
index 6fef3f9c7..b0bd26713 100644
--- a/src/hashes.c
+++ b/src/hashes.c
@@ -1897,7 +1897,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
   if (hashes->parser_token_length_cnt > 0)
   {
     event_log_advice (hashcat_ctx, NULL); // we can guarantee that the previous line was not an empty line
-    event_log_advice (hashcat_ctx, "* Token length exception: %u/%u hashes", hashes->parser_token_length_cnt, hashes->parser_token_length_cnt + hashes->hashes_cnt_orig);
+    event_log_advice (hashcat_ctx, "* Token length exception: %u/%u hashes", hashes->parser_token_length_cnt, hashes->parser_token_length_cnt + hashes->hashes_cnt);
     event_log_advice (hashcat_ctx, "  This error happens if the wrong hash type is specified, if the hashes are");
     event_log_advice (hashcat_ctx, "  malformed, or if input is otherwise not as expected (for example, if the");
     event_log_advice (hashcat_ctx, "  --username option is used but no username is present)");