diff --git a/include/dictstat.h b/include/dictstat.h index 5d059889e..4e79169b1 100644 --- a/include/dictstat.h +++ b/include/dictstat.h @@ -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); diff --git a/src/rp_cpu.c b/src/rp_cpu.c index 4b89532dc..fc11d645a 100644 --- a/src/rp_cpu.c +++ b/src/rp_cpu.c @@ -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);