mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-07 01:19:10 +00:00
minor: the step value should never be zero
This commit is contained in:
parent
a969cb0768
commit
5ea1bd2a99
@ -2115,6 +2115,13 @@ static int hm_ADL_Overdrive_PowerControl_Set (hashcat_ctx_t *hashcat_ctx, int iA
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (step == 0)
|
||||||
|
{
|
||||||
|
event_log_error (hashcat_ctx, "ADL PowerControl step invalid");
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (level % step != 0)
|
if (level % step != 0)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "ADL PowerControl step invalid");
|
event_log_error (hashcat_ctx, "ADL PowerControl step invalid");
|
||||||
|
Loading…
Reference in New Issue
Block a user