1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-03-24 11:25:41 +00:00

Merge pull request #1077 from philsmd/master

if fstat () fails we shouldn't forget to close the file
This commit is contained in:
Jens Steube 2017-02-14 17:04:40 +01:00 committed by GitHub
commit bcb05697c0

View File

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