1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 08:38:09 +00:00

Better handle rc == -1

This commit is contained in:
jsteube 2016-10-11 13:38:35 +02:00
parent 6a697571fd
commit fa70e44874

View File

@ -726,7 +726,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
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);
@ -747,7 +747,7 @@ static int outer_loop (hashcat_ctx_t *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;
}
@ -756,7 +756,7 @@ static int outer_loop (hashcat_ctx_t *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