diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-12 08:31:47 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-12 08:31:47 +0000 |
commit | 689cb28098021dfe62db929a54ee154f508e1376 (patch) | |
tree | 10f2875ac4989ca170ab82d25f4ddccbb883db25 | |
parent | c1a6940e7364517ab6f29a0134a444194fa6728f (diff) | |
download | tor-689cb28098021dfe62db929a54ee154f508e1376.tar.gz tor-689cb28098021dfe62db929a54ee154f508e1376.zip |
when writing the recommended*versions lines, sort them first.
this is because weasel put his out of order and told me the code
should take care of it.
svn:r5016
-rw-r--r-- | src/or/dirserv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index d9bea6eb9a..639839973a 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -568,6 +568,7 @@ format_versions_list(config_line_t *ln) smartlist_split_string(versions, ln->value, ",", SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0); } + smartlist_sort_strings(versions); /* sort them */ result = smartlist_join_strings(versions,",",0,NULL); SMARTLIST_FOREACH(versions,char *,s,tor_free(s)); smartlist_free(versions); |