From 27e92540e4ce6238644232554f9c5af1ad208ddf Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 20 Oct 2016 22:58:40 +0200 Subject: [PATCH] Do not unlink restore file of restore is disabled --- src/restore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/restore.c b/src/restore.c index 9ab30baed..5bf889df6 100644 --- a/src/restore.c +++ b/src/restore.c @@ -306,6 +306,8 @@ void unlink_restore (hashcat_ctx_t *hashcat_ctx) restore_ctx_t *restore_ctx = hashcat_ctx->restore_ctx; status_ctx_t *status_ctx = hashcat_ctx->status_ctx; + if (restore_ctx->enabled == false) return; + if ((status_ctx->devices_status == STATUS_EXHAUSTED) && (status_ctx->run_thread_level1 == true)) // this is to check for [c]heckpoint { unlink (restore_ctx->eff_restore_file);