From 7284b934cb84a51a9cba4580de22e3116fbbf582 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 7 Aug 2019 16:20:26 +0200 Subject: [PATCH] Fix null pointer dereference in case LM hash with both LM parts was given without hash file --- src/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.c b/src/status.c index c8b95a809..718336f43 100644 --- a/src/status.c +++ b/src/status.c @@ -309,7 +309,7 @@ char *status_get_hash_target (const hashcat_ctx_t *hashcat_ctx) const hashes_t *hashes = hashcat_ctx->hashes; const module_ctx_t *module_ctx = hashcat_ctx->module_ctx; - if (hashes->digests_cnt == 1) + if ((hashes->digests_cnt == 1) || (hashes->hashfile == NULL)) { if (module_ctx->module_hash_encode_status != MODULE_DEFAULT) {