From 748350ace11fa55758fb8bafe5e5556867dd9c23 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 20 Apr 2011 16:49:41 -0400 Subject: Instead of checking whether we have unremoved intro points, check for usable ones --- src/or/rendcommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/rendcommon.c') diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index f4c8888c0..9d6a89ef1 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -934,7 +934,7 @@ rend_cache_lookup_entry(const char *query, int version, rend_cache_entry_t **e) tor_assert((*e)->parsed && (*e)->parsed->intro_nodes); /* XXX023 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) + if (! rend_client_any_intro_points_usable(*e)) return 0; return 1; } -- cgit v1.2.3