mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-22 12:32:04 +00:00
Reset innerloop_* and outerloop_* variables when no longer needed
This commit is contained in:
parent
935e4a6fa0
commit
c1aba9e314
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user