mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-28 19:58:47 +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 hashes_t *hashes = hashcat_ctx->hashes;
|
||||||
const module_ctx_t *module_ctx = hashcat_ctx->module_ctx;
|
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)
|
if (module_ctx->module_hash_encode_status != MODULE_DEFAULT)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user