From 4b6ff2b084080acd359a81e5a17a3a238bed0b69 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 3 Apr 2006 06:30:48 +0000 Subject: [PATCH] bugfix in sort_version_list() so it doesn't screw up the sorting. svn:r6308 --- src/or/routerparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 48a5aa7efb..240390bb52 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -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--); } } }