1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-22 21:51:07 +00:00

Fix some output in case wordlist has only size of 1 word

This commit is contained in:
jsteube 2016-10-26 14:42:19 +02:00
parent 6582a8ae21
commit 68b907a012

View File

@ -405,6 +405,8 @@ u64 count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile)
double percent = ((double) comp / (double) d.stat.st_size) * 100;
if (percent < 100)
{
cache_generate_t cache_generate;
cache_generate.dictfile = (char *) dictfile;
@ -415,6 +417,7 @@ u64 count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile)
EVENT_DATA (EVENT_WORDLIST_CACHE_GENERATE, &cache_generate, sizeof (cache_generate));
}
}
cache_generate_t cache_generate;