mirror of
https://github.com/hashcat/hashcat.git
synced 2025-03-25 11:55:42 +00:00
Check for at least one active OpenCL device before running weak-hash-check
This commit is contained in:
parent
8fe0765084
commit
ed772a02a4
@ -656,6 +656,13 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
|
||||
break;
|
||||
}
|
||||
|
||||
if (device_param == NULL)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "No device found for weak-hash-check");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
EVENT (EVENT_WEAK_HASH_PRE);
|
||||
|
||||
for (u32 salt_pos = 0; salt_pos < hashes->salts_cnt; salt_pos++)
|
||||
|
Loading…
Reference in New Issue
Block a user