mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Do not serve encrypt-only descriptors with the "all" request. Reported by piebeer
This commit is contained in:
parent
10ad3442e1
commit
bcbc8c51cb
@ -2699,6 +2699,8 @@ dirserv_get_routerdesc_fingerprints(smartlist_t *fps_out, const char *key,
|
|||||||
SMARTLIST_FOREACH(rl->routers, routerinfo_t *, r,
|
SMARTLIST_FOREACH(rl->routers, routerinfo_t *, r,
|
||||||
smartlist_add(fps_out,
|
smartlist_add(fps_out,
|
||||||
tor_memdup(r->cache_info.identity_digest, DIGEST_LEN)));
|
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")) {
|
} else if (!strcmp(key, "authority")) {
|
||||||
routerinfo_t *ri = router_get_my_routerinfo();
|
routerinfo_t *ri = router_get_my_routerinfo();
|
||||||
if (ri)
|
if (ri)
|
||||||
|
Loading…
Reference in New Issue
Block a user