Fix a wrong expression in rp.c (static analysis)

pull/3825/head
Arseniy Sharoglazov 9 months ago
parent 4ae5530ff9
commit 21093817bd

@ -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);

Loading…
Cancel
Save