aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2005-10-18 15:58:40 +0000
committerPeter Palfrader <peter@palfrader.org>2005-10-18 15:58:40 +0000
commit00e17092446fbe8adbbe67caa2cd9e5a99bc0f24 (patch)
tree2e6ce1c1c08c8d8fdd24eb15691cf20cd1dbc55d /src
parent6e8052e0f8da0b75b37cbf103f9169f86570231e (diff)
downloadtor-00e17092446fbe8adbbe67caa2cd9e5a99bc0f24.tar
tor-00e17092446fbe8adbbe67caa2cd9e5a99bc0f24.tar.gz
Fix download by SD digest
svn:r5272
Diffstat (limited to 'src')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 41051dc01..3c413e3c2 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1409,8 +1409,8 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key)
smartlist_add(descs_out, ri);
} else if (!strcmpstart(key, "/tor/server/d/")) {
smartlist_t *digests = smartlist_create();
- dir_split_resource_into_fingerprints(key, digests, NULL, 1);
key += strlen("/tor/server/d/");
+ dir_split_resource_into_fingerprints(key, digests, NULL, 1);
SMARTLIST_FOREACH(digests, const char *, d,
{
routerinfo_t *ri = router_get_by_descriptor_digest(d);