1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 07:28:10 +00:00

Merge pull request #1090 from philsmd/pr/hwmon_step_fix

minor: the step value should never be zero
This commit is contained in:
Jens Steube 2017-02-14 19:25:46 +01:00 committed by GitHub
commit 33da74f6db

View File

@ -2115,6 +2115,13 @@ static int hm_ADL_Overdrive_PowerControl_Set (hashcat_ctx_t *hashcat_ctx, int iA
return -1;
}
if (step == 0)
{
event_log_error (hashcat_ctx, "ADL PowerControl step invalid");
return -1;
}
if (level % step != 0)
{
event_log_error (hashcat_ctx, "ADL PowerControl step invalid");