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:
parent
6716447dfc
commit
4483899557
2
src/rp.c
2
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);
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user