mirror of
https://github.com/hashcat/hashcat
synced 2024-11-24 14:27:14 +01: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