mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-09 07:11:03 +00:00
Do not unlink restore file of restore is disabled
This commit is contained in:
parent
e9b11c2951
commit
27e92540e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user