Fix final comparison in sort_by_dictstat()

This commit is contained in:
Jens Steube
2018-02-12 14:56:28 +01:00
parent 91e522d094
commit c9f3ef6dae
+3 -1
View File
@@ -39,7 +39,9 @@ int sort_by_dictstat (const void *s1, const void *s2)
stat2.STAT_NANOSECONDS_ACCESS_TIME = 0;
#endif
return memcmp (&s1, &s2, sizeof (struct stat));
const int rc_memcmp = memcmp (&stat1, &stat2, sizeof (struct stat));
return rc_memcmp;
}
int dictstat_init (hashcat_ctx_t *hashcat_ctx)