if fstat () fails we shouldn't forget to close the file

pull/1077/head
philsmd 7 years ago
parent dcdafdbc08
commit aed01460f2
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

@ -142,7 +142,12 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
hc_stat_t outfile_stat;
if (hc_fstat (fileno (fp), &outfile_stat)) continue;
if (hc_fstat (fileno (fp), &outfile_stat))
{
close (fp);
continue;
}
if (outfile_stat.st_ctime > out_info[j].ctime)
{

Loading…
Cancel
Save