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

pull/2160/head
Jens Steube 5 years ago
parent 154e2b0b8f
commit 7284b934cb

@ -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)
{

Loading…
Cancel
Save