From 4483899557507e0d43a5b5378309fa7990e2be5e Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Thu, 4 Jul 2024 11:50:31 -0500 Subject: [PATCH] Fixed possible impossible condition, in case an error, free memory will not work --- 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);