1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fixed possible incorrect comparison with CPT_CACHE

This commit is contained in:
Herman Semenov 2024-07-04 11:38:48 -05:00
parent 6716447dfc
commit e6ab4d730d

View File

@ -796,7 +796,7 @@ int check_cracked (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param)
cpt_ctx->cpt_total += cpt_cracked;
if (cpt_ctx->cpt_pos == CPT_CACHE) cpt_ctx->cpt_pos = 0;
if (cpt_ctx->cpt_total == CPT_CACHE) cpt_ctx->cpt_pos = 0;
hc_thread_mutex_unlock (status_ctx->mux_display);
}