From 3a04086a049ad3c671a47713cebf377fc4904778 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 30 Oct 2016 12:36:21 +0100 Subject: [PATCH] Fix for https://github.com/hashcat/hashcat/issues/555 --- src/debugfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debugfile.c b/src/debugfile.c index 03b9cc1e7..ff8ed38e6 100644 --- a/src/debugfile.c +++ b/src/debugfile.c @@ -100,10 +100,10 @@ int debugfile_init (hashcat_ctx_t *hashcat_ctx) debugfile_ctx->mode = user_options->debug_mode; + debugfile_ctx->filename = user_options->debug_file; + if (debugfile_ctx->filename) { - debugfile_ctx->filename = user_options->debug_file; - debugfile_ctx->fp = fopen (debugfile_ctx->filename, "ab"); if (debugfile_ctx->fp == NULL)