mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
Better handle rc == -1
This commit is contained in:
parent
6a697571fd
commit
fa70e44874
@ -726,7 +726,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
EVENT (EVENT_POTFILE_NUM_CRACKED);
|
EVENT (EVENT_POTFILE_NUM_CRACKED);
|
||||||
|
|
||||||
// main call
|
// main call, also not we have some threads to care about, so don't return with -1 anywhere from here
|
||||||
|
|
||||||
EVENT (EVENT_INNERLOOP1_STARTING);
|
EVENT (EVENT_INNERLOOP1_STARTING);
|
||||||
|
|
||||||
@ -747,7 +747,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
const int rc_inner1_loop = inner1_loop (hashcat_ctx);
|
const int rc_inner1_loop = inner1_loop (hashcat_ctx);
|
||||||
|
|
||||||
if (rc_inner1_loop == -1) return -1;
|
if (rc_inner1_loop == -1) myabort (hashcat_ctx);
|
||||||
|
|
||||||
if (status_ctx->run_main_level2 == false) break;
|
if (status_ctx->run_main_level2 == false) break;
|
||||||
}
|
}
|
||||||
@ -756,7 +756,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
const int rc_inner1_loop = inner1_loop (hashcat_ctx);
|
const int rc_inner1_loop = inner1_loop (hashcat_ctx);
|
||||||
|
|
||||||
if (rc_inner1_loop == -1) return -1;
|
if (rc_inner1_loop == -1) myabort (hashcat_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait for inner threads
|
// wait for inner threads
|
||||||
|
Loading…
Reference in New Issue
Block a user