mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-25 17:32:38 +00:00
do not allow negative kern_type
This commit is contained in:
parent
cf6f71eb8a
commit
eb276f12f6
@ -9893,6 +9893,13 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((int) kern_type == -1)
|
||||||
|
{
|
||||||
|
event_log_error (hashcat_ctx, "Invalid hash-mode selected: -1");
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// built options
|
// built options
|
||||||
|
|
||||||
const size_t build_options_sz = 4096;
|
const size_t build_options_sz = 4096;
|
||||||
|
Loading…
Reference in New Issue
Block a user