]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not serve encrypt-only descriptors with the "all" request. Reported by piebeer
authorNick Mathewson <nickm@torproject.org>
Fri, 4 Mar 2011 04:51:07 +0000 (23:51 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 4 Mar 2011 05:04:25 +0000 (00:04 -0500)
src/or/dirserv.c

index 1649bd7408689749b4f151a12cf09eae122014e2..7db6c19a333ece39912ef2a4f0506242978f41b4 100644 (file)
@@ -2699,6 +2699,8 @@ dirserv_get_routerdesc_fingerprints(smartlist_t *fps_out, const char *key,
     SMARTLIST_FOREACH(rl->routers, routerinfo_t *, r,
                       smartlist_add(fps_out,
                       tor_memdup(r->cache_info.identity_digest, DIGEST_LEN)));
+    /* Treat "all" requests as if they were unencrypted */
+    for_unencrypted_conn = 1;
   } else if (!strcmp(key, "authority")) {
     routerinfo_t *ri = router_get_my_routerinfo();
     if (ri)