diff options
author | Roger Dingledine <arma@torproject.org> | 2006-04-03 06:30:48 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-04-03 06:30:48 +0000 |
commit | 4b6ff2b084080acd359a81e5a17a3a238bed0b69 (patch) | |
tree | be29c5cfcb9c62ca5da8a1d85f275733e88c4f80 /src/or/routerparse.c | |
parent | eba6204315eb8ae21ace848cbc2f4abf765386be (diff) | |
download | tor-4b6ff2b084080acd359a81e5a17a3a238bed0b69.tar.gz tor-4b6ff2b084080acd359a81e5a17a3a238bed0b69.zip |
bugfix in sort_version_list() so it doesn't screw up the sorting.
svn:r6308
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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--); } } } |