From: Jens Steube Date: Sun, 14 Feb 2016 14:50:29 +0000 (+0100) Subject: Fixed a missing condition X-Git-Tag: v3.00-beta~289 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=72e0553e449c9fd360a2aef914d0b5fbe1839986;p=hashcat.git Fixed a missing condition --- diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 77274ac..075e827 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -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;