diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-04-20 16:49:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-04-27 00:01:41 -0400 |
commit | 748350ace11fa55758fb8bafe5e5556867dd9c23 (patch) | |
tree | 550360f9a4bea20cf638f6481d48cdeade5307b7 /src/or/rendcommon.c | |
parent | b8b557dcb2bf719976858589345f08fffbab13e3 (diff) | |
download | tor-748350ace11fa55758fb8bafe5e5556867dd9c23.tar.gz tor-748350ace11fa55758fb8bafe5e5556867dd9c23.zip |
Instead of checking whether we have unremoved intro points, check for usable ones
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index f4c8888c04..9d6a89ef1f 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; } |