From 6b77606bdd71a39dec48f78db7bce1457eeb5cab Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 2 Mar 2017 23:30:43 +0100 Subject: [PATCH] Fixed recursion in loopback handling when session was aborted by the user --- docs/changes.txt | 1 + src/hashcat.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 32a830885..55d1ceb33 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -52,6 +52,7 @@ - Fixed nvapi datatype definition for NvS32 and NvU32 - Fixed pointer to local outside scope in case -j or -k is used - Fixed pointer to local outside scope in case --markov-hcstat is not used +- Fixed recursion in loopback handling when session was aborted by the user - Fixed rule 'O' (RULE_OP_MANGLE_OMIT) in host mode in case the offset + length parameter equals the length of the input word - Fixed rule 'i' (RULE_OP_MANGLE_INSERT) in host mode in case the offset parameter equals the length of the input word - Fixed string not null terminated inside workaround for checking drm driver path diff --git a/src/hashcat.c b/src/hashcat.c index f08926296..74536057d 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -300,7 +300,7 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx) { for (induct_ctx->induction_dictionaries_pos = 0; induct_ctx->induction_dictionaries_pos < induct_ctx->induction_dictionaries_cnt; induct_ctx->induction_dictionaries_pos++) { - if (status_ctx->devices_status != STATUS_CRACKED) + if (status_ctx->devices_status == STATUS_EXHAUSTED) { const int rc_inner2_loop = inner2_loop (hashcat_ctx);