diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-03 23:51:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-04 00:04:25 -0500 |
commit | bcbc8c51cbc026e73e831f6641f5d1fd6ebebd9d (patch) | |
tree | ef5893a4888c2462703ad3342f629042acc16778 | |
parent | 10ad3442e11fb5a54c19eef7425bc317a9cc0969 (diff) | |
download | tor-bcbc8c51cbc026e73e831f6641f5d1fd6ebebd9d.tar.gz tor-bcbc8c51cbc026e73e831f6641f5d1fd6ebebd9d.zip |
Do not serve encrypt-only descriptors with the "all" request. Reported by piebeer
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 1649bd7408..7db6c19a33 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -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) |