mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 16:38:29 +00:00
Fix a bug related to --limit
This commit is contained in:
parent
3a275a95e6
commit
c081d3cf05
@ -4780,7 +4780,7 @@ static uint get_work (hc_device_param_t *device_param, const u64 max)
|
||||
hc_thread_mutex_lock (mux_dispatcher);
|
||||
|
||||
const u64 words_cur = data.words_cur;
|
||||
const u64 words_base = (data.limit == 0) ? data.words_base : data.limit;
|
||||
const u64 words_base = (data.limit == 0) ? data.words_base : MIN (data.limit, data.words_base);
|
||||
|
||||
device_param->words_off = words_cur;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user