1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-09 15:20:59 +00:00

Do not unlink restore file of restore is disabled

This commit is contained in:
jsteube 2016-10-20 22:58:40 +02:00
parent e9b11c2951
commit 27e92540e4

View File

@ -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);