projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a275a9
)
Fix a bug related to --limit
author
jsteube
<jens.steube@gmail.com>
Sun, 26 Jun 2016 08:01:50 +0000
(10:01 +0200)
committer
jsteube
<jens.steube@gmail.com>
Sun, 26 Jun 2016 08:01:50 +0000
(10:01 +0200)
src/hashcat.c
patch
|
blob
|
history
diff --git
a/src/hashcat.c
b/src/hashcat.c
index
36a6e84
..
b524fab
100644
(file)
--- a/
src/hashcat.c
+++ b/
src/hashcat.c
@@
-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;