Browse Source

Fix download by SD digest

svn:r5272
Peter Palfrader 19 years ago
parent
commit
00e1709244
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/dirserv.c

+ 1 - 1
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);