mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
Fix empty line check in _old_apply_rule()
This commit is contained in:
parent
907ded0b03
commit
719f2656b1
@ -18,7 +18,7 @@
|
||||
#define MAX_DICTSTAT 100000
|
||||
|
||||
#define DICTSTAT_FILENAME "hashcat.dictstat2"
|
||||
#define DICTSTAT_VERSION (0x6863646963740000 | 0x0002)
|
||||
#define DICTSTAT_VERSION (0x6863646963743200 | 0x01)
|
||||
|
||||
int sort_by_dictstat (const void *s1, const void *s2);
|
||||
|
||||
|
@ -483,7 +483,7 @@ int _old_apply_rule (char *rule, int rule_len, char in[RP_PASSWORD_SIZE], int in
|
||||
|
||||
if (out == NULL) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
if (in_len < 1 || in_len > RP_PASSWORD_SIZE) return (RULE_RC_REJECT_ERROR);
|
||||
if (in_len < 0 || in_len > RP_PASSWORD_SIZE) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
if (rule_len < 1) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user