1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-17 04:08:34 +00:00

Fixed a missing condition

This commit is contained in:
Jens Steube 2016-02-14 15:50:29 +01:00
parent c09bc848f7
commit 72e0553e44

View File

@ -13587,9 +13587,12 @@ int main (int argc, char **argv)
kernel_loops_max = kernel_loops_fixed;
}
if (data.salts_buf[0].salt_iter < kernel_loops_max)
if (attack_exec == ATTACK_EXEC_OUTSIDE_KERNEL)
{
kernel_loops_max = data.salts_buf[0].salt_iter;
if (data.salts_buf[0].salt_iter < kernel_loops_max)
{
kernel_loops_max = data.salts_buf[0].salt_iter;
}
}
device_param->kernel_loops_min = kernel_loops_min;