mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-25 23:21:05 +00:00
Do not check hc_path_read() if hc_path_exist() failed for commandline hash argument
This commit is contained in:
parent
3648efdb02
commit
518983d3a0
@ -1321,11 +1321,14 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if (user_options_extra->hc_hash != NULL)
|
if (user_options_extra->hc_hash != NULL)
|
||||||
{
|
{
|
||||||
if (hc_path_read (user_options_extra->hc_hash) == false)
|
if (hc_path_exist (user_options_extra->hc_hash) == true)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "%s: %m", user_options_extra->hc_hash);
|
if (hc_path_read (user_options_extra->hc_hash) == false)
|
||||||
|
{
|
||||||
|
event_log_error (hashcat_ctx, "%s: %m", user_options_extra->hc_hash);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user