1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-11 00:01:16 +00:00

dead code: both hashes_avail and hash_len can't be 0 here

This commit is contained in:
philsmd 2017-02-14 18:33:53 +01:00
parent db46f95e14
commit 94a37157c1
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

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;