mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-08 18:08:51 +00:00
if fstat () fails we shouldn't forget to close the file
This commit is contained in:
parent
dcdafdbc08
commit
aed01460f2
@ -142,7 +142,12 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
hc_stat_t outfile_stat;
|
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)
|
if (outfile_stat.st_ctime > out_info[j].ctime)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user