From 0c65c03397df308871d198698ad3e5e1e19c733d Mon Sep 17 00:00:00 2001 From: PenguinKeeper7 Date: Mon, 4 Sep 2023 20:34:56 +0100 Subject: [PATCH] Correctly check -j / -k's values Check as ':' instead of NULL, as : is the default value of rule_buf_l and rule_buf_r --- src/dictstat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dictstat.c b/src/dictstat.c index 24eb419c3..5cc1a6446 100644 --- a/src/dictstat.c +++ b/src/dictstat.c @@ -100,8 +100,8 @@ void dictstat_read (hashcat_ctx_t *hashcat_ctx) if (hashconfig->dictstat_disable == true) return; - if (user_options->rule_buf_l != NULL) return; - if (user_options->rule_buf_r != NULL) return; + if (*user_options->rule_buf_l != ':') return; + if (*user_options->rule_buf_r != ':') return; HCFILE fp; @@ -192,8 +192,8 @@ int dictstat_write (hashcat_ctx_t *hashcat_ctx) if (hashconfig->dictstat_disable == true) return 0; - if (user_options->rule_buf_l != NULL) return 0; - if (user_options->rule_buf_r != NULL) return 0; + if (*user_options->rule_buf_l != ':') return 0; + if (*user_options->rule_buf_r != ':') return 0; HCFILE fp;