|
|
|
@ -182,8 +182,8 @@ int save_hash (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
{
|
|
|
|
|
event_log_error (hashcat_ctx, "%s: %s", new_hashfile, strerror (errno));
|
|
|
|
|
|
|
|
|
|
free (new_hashfile);
|
|
|
|
|
free (old_hashfile);
|
|
|
|
|
hcfree (new_hashfile);
|
|
|
|
|
hcfree (old_hashfile);
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
@ -194,8 +194,8 @@ int save_hash (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
|
|
|
|
|
event_log_error (hashcat_ctx, "%s: %s", new_hashfile, strerror (errno));
|
|
|
|
|
|
|
|
|
|
free (new_hashfile);
|
|
|
|
|
free (old_hashfile);
|
|
|
|
|
hcfree (new_hashfile);
|
|
|
|
|
hcfree (old_hashfile);
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
@ -256,8 +256,8 @@ int save_hash (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
|
|
|
|
|
event_log_error (hashcat_ctx, "%s: %s", new_hashfile, strerror (errno));
|
|
|
|
|
|
|
|
|
|
free (new_hashfile);
|
|
|
|
|
free (old_hashfile);
|
|
|
|
|
hcfree (new_hashfile);
|
|
|
|
|
hcfree (old_hashfile);
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
@ -270,8 +270,8 @@ int save_hash (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
{
|
|
|
|
|
event_log_error (hashcat_ctx, "Rename file '%s' to '%s': %s", hashfile, old_hashfile, strerror (errno));
|
|
|
|
|
|
|
|
|
|
free (new_hashfile);
|
|
|
|
|
free (old_hashfile);
|
|
|
|
|
hcfree (new_hashfile);
|
|
|
|
|
hcfree (old_hashfile);
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
@ -282,16 +282,16 @@ int save_hash (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
{
|
|
|
|
|
event_log_error (hashcat_ctx, "Rename file '%s' to '%s': %s", new_hashfile, hashfile, strerror (errno));
|
|
|
|
|
|
|
|
|
|
free (new_hashfile);
|
|
|
|
|
free (old_hashfile);
|
|
|
|
|
hcfree (new_hashfile);
|
|
|
|
|
hcfree (old_hashfile);
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unlink (old_hashfile);
|
|
|
|
|
|
|
|
|
|
free (new_hashfile);
|
|
|
|
|
free (old_hashfile);
|
|
|
|
|
hcfree (new_hashfile);
|
|
|
|
|
hcfree (old_hashfile);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|