Fix null pointer dereference in case LM hash with both LM parts was given without hash file

This commit is contained in:
Jens Steube
2019-08-07 16:20:26 +02:00
parent 154e2b0b8f
commit 7284b934cb
+1 -1
View File
@@ -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)
{