1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-25 01:18:15 +00:00

Fixed possible impossible condition, in case an error, free memory will not work

This commit is contained in:
Herman Semenov 2024-07-04 11:50:31 -05:00
parent 6716447dfc
commit 4483899557

View File

@ -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); 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); event_log_error (hashcat_ctx, "Unsupported number of lines in rule file %s.", rp_file);