From 21093817bd4f9ed381e63720c4d80fe6d55621fd Mon Sep 17 00:00:00 2001 From: Arseniy Sharoglazov Date: Thu, 10 Aug 2023 06:29:41 +0300 Subject: [PATCH] Fix a wrong expression in rp.c (static analysis) --- src/rp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp.c b/src/rp.c index 67ebd9322..c47dae2a6 100644 --- a/src/rp.c +++ b/src/rp.c @@ -770,7 +770,7 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32 { rule_len = (u32) fgetl (&fp, rule_buf, HCBUFSIZ_LARGE); - if (rule_line == (u32) -1) + if (rule_len == (u32) -1) { event_log_error (hashcat_ctx, "Unsupported number of lines in rule file %s.", rp_file);