mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
bugfix in sort_version_list() so it doesn't screw up the sorting.
svn:r6308
This commit is contained in:
parent
eba6204315
commit
4b6ff2b084
@ -1942,7 +1942,7 @@ sort_version_list(smartlist_t *versions, int remove_duplicates)
|
||||
* version */
|
||||
if (_compare_tor_version_str_ptr(a,b) == 0) {
|
||||
tor_free(smartlist_get(versions, i));
|
||||
smartlist_del(versions, i--);
|
||||
smartlist_del_keeporder(versions, i--);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user