1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fix empty line check in _old_apply_rule()

This commit is contained in:
jsteube 2017-10-01 17:03:16 +02:00
parent 907ded0b03
commit 719f2656b1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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