From b55cdeded87eb177fda095628e26742950092e27 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 4 Oct 2016 23:00:20 +0200 Subject: [PATCH] Check for write-able potfile or exit --- src/hashcat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hashcat.c b/src/hashcat.c index 28388ae24..917cfe00d 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -1088,7 +1088,9 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx) * weak hash check is the first to write to potfile, so open it for writing from here */ - potfile_write_open (potfile_ctx); + const int rc_potfile_write = potfile_write_open (potfile_ctx); + + if (rc_potfile_write == -1) return -1; /** * weak hash check