Fixed a missing check for returncode in case hashcat.hcstat2 was not found

This commit is contained in:
jsteube
2018-02-07 18:47:55 +01:00
parent bee0d75a3e
commit bb401c9cec
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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));