mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-16 04:49:24 +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:
commit
c7c0101f64
16
src/hashes.c
16
src/hashes.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user