1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-16 11:38:21 +00:00

Merge pull request #4252 from visitorckw/fix-sort-pot-orig-line

Fix incorrect comparison result in sort_pot_orig_line()
This commit is contained in:
Jens Steube 2025-06-20 14:56:06 +02:00 committed by GitHub
commit f399c97db0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,10 @@ int sort_pot_orig_line (const void *v1, const void *v2)
const pot_orig_line_entry_t *t1 = (const pot_orig_line_entry_t *) v1;
const pot_orig_line_entry_t *t2 = (const pot_orig_line_entry_t *) v2;
return t1->line_pos > t2->line_pos;
if (t1->line_pos > t2->line_pos) return 1;
if (t1->line_pos < t2->line_pos) return -1;
return 0;
}
// the problem with the GNU tdestroy () function is that it doesn't work with mingw etc