diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-03-13 21:10:32 -0700 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2011-03-14 01:14:05 -0700 |
commit | c90097e74a21ef70d9df2ab70e5b211d7a26dc6d (patch) | |
tree | 1d7c6f92ae7810e673810596ca366876e4c824a5 /src/or/rendcommon.c | |
parent | 151ab614421eed48ba2f39518695b8ee08206904 (diff) | |
download | tor-c90097e74a21ef70d9df2ab70e5b211d7a26dc6d.tar.gz tor-c90097e74a21ef70d9df2ab70e5b211d7a26dc6d.zip |
Remove dead code from rend_cache_lookup_v2_desc_as_dir
hid_serv_responsible_for_desc_id's return value is never negative, and
there is no need to search through the consensus to find out whether we
are responsible for a descriptor ID before we look in our cache for a
descriptor.
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index d6f5443815..ff3a4014a8 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -1008,13 +1008,6 @@ rend_cache_lookup_v2_desc_as_dir(const char *desc_id, const char **desc) safe_str(desc_id)); return -1; } - /* Determine if we are responsible. */ - if (hid_serv_responsible_for_desc_id(desc_id_digest) < 0) { - log_info(LD_REND, "Could not answer fetch request for v2 descriptor; " - "either we are no hidden service directory, or we are " - "not responsible for the requested ID."); - return -1; - } /* Lookup descriptor and return. */ e = digestmap_get(rend_cache_v2_dir, desc_id_digest); if (e) { |