mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-11 08:10:59 +00:00
Merge pull request #1078 from philsmd/master
if fstat () fails we shouldn't forget to close the file
This commit is contained in:
commit
a3efaa219c
@ -144,7 +144,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if (hc_fstat (fileno (fp), &outfile_stat))
|
if (hc_fstat (fileno (fp), &outfile_stat))
|
||||||
{
|
{
|
||||||
close (fp);
|
fclose (fp);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user