1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Merge pull request #1085 from philsmd/master

dead code: both hashes_avail and hash_len can't be 0 here
This commit is contained in:
Jens Steube 2017-02-14 18:38:59 +01:00 committed by GitHub
commit c7c0101f64

View File

@ -745,15 +745,6 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
return -1;
}
if (hashes_avail < 1)
{
event_log_error (hashcat_ctx, "hccapx file is empty or corrupt");
fclose (fp);
return -1;
}
char *in = (char *) hcmalloc (sizeof (hccapx_t));
while (!feof (fp))
@ -836,13 +827,6 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
}
else if (hashconfig->hash_mode == 14600)
{
if (hash_len == 0)
{
event_log_error (hashcat_ctx, "LUKS container not specified");
return -1;
}
hashlist_mode = HL_MODE_FILE;
hashes->hashlist_mode = hashlist_mode;