mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-15 20:39:17 +00:00
Fix null pointer dereference in case LM hash with both LM parts was given without hash file
This commit is contained in:
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…
Reference in New Issue
Block a user