From 78999cff56142777941ad10244d61848897983d9 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 6 Oct 2016 21:16:39 +0200 Subject: [PATCH] Zero hashcat context pointer addresses on shutdown --- src/hashcat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hashcat.c b/src/hashcat.c index 37511a246..65cb1ae21 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -110,6 +110,8 @@ void hashcat_ctx_destroy (hashcat_ctx_t *hashcat_ctx) myfree (hashcat_ctx->user_options_extra); myfree (hashcat_ctx->user_options); myfree (hashcat_ctx->wl_data); + + memset (hashcat_ctx, 0, sizeof (hashcat_ctx_t)); } // inner2_loop iterates through wordlists, then calls kernel execution