From fa70e4487434a9719bf8246dd7f787fc345477b9 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 11 Oct 2016 13:38:35 +0200 Subject: [PATCH] Better handle rc == -1 --- src/hashcat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hashcat.c b/src/hashcat.c index 15832edb7..d253928d4 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -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