aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-27 17:15:19 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-24 13:03:28 -0400
commita64ef7d6c5f609229c4e6a25f1b18494a3ba6eea (patch)
treebd8d8a9922d0bf11567b5fd6c5429b4940d270be /src/or/connection_edge.c
parent14b858c4ced594ee5130a685ac4b143bf66da04a (diff)
downloadtor-a64ef7d6c5f609229c4e6a25f1b18494a3ba6eea.tar.gz
tor-a64ef7d6c5f609229c4e6a25f1b18494a3ba6eea.zip
prop224: Implement hs_client_any_intro_points_usable()
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 3dd08b6d2a..6409c5be81 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1501,7 +1501,9 @@ connection_ap_handle_onion(entry_connection_t *conn,
cached_desc = hs_cache_lookup_as_client(&hs_conn_ident->identity_pk);
if (cached_desc) {
rend_cache_lookup_result = 0;
- descriptor_is_usable = hs_client_any_intro_points_usable(cached_desc);
+ descriptor_is_usable =
+ hs_client_any_intro_points_usable(&hs_conn_ident->identity_pk,
+ cached_desc);
log_info(LD_GENERAL, "Found %s descriptor in cache for %s. %s.",
(descriptor_is_usable) ? "usable" : "unusable",
safe_str_client(onion_address),