summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-16 04:42:45 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-16 04:42:45 +0000
commit9c2ca40df3b84c66a55d273ddea4cbc765476da6 (patch)
treedfb75170682a76ac6d84f10f148b7df1690d9767 /src/or/dirserv.c
parent05bab28c7d9a60d14b2bd880b793e645eb6cc3cd (diff)
downloadtor-9c2ca40df3b84c66a55d273ddea4cbc765476da6.tar.gz
tor-9c2ca40df3b84c66a55d273ddea4cbc765476da6.zip
Unify our "figure out which fingerprints we were downloading" code.
svn:r5077
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index ae43a7df8c..e62978f142 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1338,7 +1338,7 @@ dirserv_get_networkstatus_v2(smartlist_t *result,
log_fn(LOG_WARN, "Client requested 'all' network status objects; we have none.");
} else if (!strcmpstart(key, "fp/")) {
smartlist_t *hexdigests = smartlist_create();
- smartlist_split_string(hexdigests, key+3, "+", 0, 0);
+ dir_split_resource_into_fingerprints(key+3, hexdigests, NULL);
SMARTLIST_FOREACH(hexdigests, char *, cp,
{
cached_dir_t *cached;
@@ -1384,7 +1384,7 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key)
smartlist_t *hexdigests = smartlist_create();
smartlist_t *digests = smartlist_create();
key += strlen("/tor/server/fp/");
- smartlist_split_string(hexdigests, key, "+", 0, 0);
+ dir_split_resource_into_fingerprints(key, hexdigests, NULL);
SMARTLIST_FOREACH(hexdigests, char *, cp,
{
char *d;