From 72e0553e449c9fd360a2aef914d0b5fbe1839986 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 14 Feb 2016 15:50:29 +0100 Subject: [PATCH] Fixed a missing condition --- src/oclHashcat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 77274ac5e..075e827a0 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;