From 94eab8a7b66a698b8b17660d7ece3b46a13362c4 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 3 Oct 2016 16:35:09 +0200 Subject: [PATCH] Do not reset user_options_t on shutdown, it could be used by main.c --- src/hashcat.c | 1 + src/user_options.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hashcat.c b/src/hashcat.c index 9599619e9..2bbb0254e 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -842,6 +842,7 @@ static int inner1_loop (hashcat_ctx_t *hashcat_ctx) } // outer_loop iterates through hash_modes (in benchmark mode) +// also initializes stuff that depend on hash mode static int outer_loop (hashcat_ctx_t *hashcat_ctx) { diff --git a/src/user_options.c b/src/user_options.c index 8bc20cce3..9abdc9e9d 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -200,7 +200,8 @@ void user_options_destroy (user_options_t *user_options) { myfree (user_options->rp_files); - memset (user_options, 0, sizeof (user_options_t)); + //do not reset this, it might be used from main.c + //memset (user_options, 0, sizeof (user_options_t)); } int user_options_getopt (user_options_t *user_options, int argc, char **argv)