From c1aba9e314152205ceb0f85f7a8b31f3b5169ed2 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 5 Oct 2016 15:00:20 +0200 Subject: [PATCH] Reset innerloop_* and outerloop_* variables when no longer needed --- src/opencl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/opencl.c b/src/opencl.c index 1f07197ad..dbaca0779 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -1036,6 +1036,7 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co // we make use of this in status view + device_param->outerloop_pos = 0; device_param->outerloop_left = pws_cnt; // loop start: most outer loop = salt iteration, then innerloops (if multi) @@ -1336,9 +1337,15 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co if (status_ctx->run_thread_level2 == false) break; } + device_param->innerloop_pos = 0; + device_param->innerloop_left = 0; + if (status_ctx->run_thread_level2 == false) break; } + device_param->outerloop_pos = 0; + device_param->outerloop_left = 0; + device_param->speed_pos = speed_pos; myfree (line_buf);