bugfix in sort_version_list() so it doesn't screw up the sorting.

svn:r6308
This commit is contained in:
Roger Dingledine 2006-04-03 06:30:48 +00:00
parent eba6204315
commit 4b6ff2b084

View File

@ -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--);
}
}
}