1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-23 06:01:06 +00:00

Fix for CID 1402403

This commit is contained in:
jsteube 2017-02-15 13:27:33 +01:00
parent e47932262d
commit 7858f37800

View File

@ -16,8 +16,14 @@ static int sort_by_mtime (const void *p1, const void *p2)
const char **f1 = (const char **) p1;
const char **f2 = (const char **) p2;
hc_stat_t s1; hc_stat (*f1, &s1);
hc_stat_t s2; hc_stat (*f2, &s2);
hc_stat_t s1;
hc_stat_t s2;
const int rc1 = hc_stat (*f1, &s1);
const int rc2 = hc_stat (*f2, &s2);
if (rc1 < rc2) return 1;
if (rc1 > rc2) return -1;
return s2.st_mtime - s1.st_mtime;
}