Fixed a missing check for returncode in case hashcat.hcstat2 was not found
This commit is contained in:
+3
-1
@@ -1387,7 +1387,9 @@ int mask_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
||||
mask_ctx->root_table_buf = (hcstat_table_t *) hccalloc (SP_ROOT_CNT, sizeof (hcstat_table_t));
|
||||
mask_ctx->markov_table_buf = (hcstat_table_t *) hccalloc (SP_MARKOV_CNT, sizeof (hcstat_table_t));
|
||||
|
||||
sp_setup_tbl (hashcat_ctx);
|
||||
const int rc = sp_setup_tbl (hashcat_ctx);
|
||||
|
||||
if (rc == -1) return -1;
|
||||
|
||||
mask_ctx->root_css_buf = (cs_t *) hccalloc (SP_PW_MAX, sizeof (cs_t));
|
||||
mask_ctx->markov_css_buf = (cs_t *) hccalloc (SP_PW_MAX * CHARSIZ, sizeof (cs_t));
|
||||
|
||||
Reference in New Issue
Block a user