summaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-06-13 12:21:58 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2009-06-13 12:21:58 +0200
commitca8708a9ce3f8e6a4b3aadf2e35edfd2b49c1a2d (patch)
tree2871249363fc9efba92d4f7f8fc4c238004a8003 /src/or/rendcommon.c
parent6a32beb8771d94dd35460ce391eeb4455f2ada3f (diff)
downloadtor-ca8708a9ce3f8e6a4b3aadf2e35edfd2b49c1a2d.tar.gz
tor-ca8708a9ce3f8e6a4b3aadf2e35edfd2b49c1a2d.zip
Fix more of bug 997.
Fix refetching of hidden service descriptors when all introduction points have turned out to not work.
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index c813c4959d..df7195e3ea 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -911,6 +911,11 @@ rend_cache_lookup_entry(const char *query, int version, rend_cache_entry_t **e)
}
if (!*e)
return 0;
+ tor_assert((*e)->parsed && (*e)->parsed->intro_nodes);
+ /* XXX022 hack for now, to return "not found" if there are no intro
+ * points remaining. See bug 997. */
+ if (smartlist_len((*e)->parsed->intro_nodes) == 0)
+ return 0;
return 1;
}