aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2019-12-05 13:40:49 -0500
committerNeel Chauhan <neel@neelc.org>2019-12-10 12:00:38 -0500
commita8b5b9a1bce34e8781a69accd35d9ba9fddac80e (patch)
tree50ce1b14f7aec1be30853647549a00980ea321a9 /src/feature/hs/hs_client.c
parent8d616a1a49a0f5433966a16b17a20121fc2845fd (diff)
downloadtor-a8b5b9a1bce34e8781a69accd35d9ba9fddac80e.tar.gz
tor-a8b5b9a1bce34e8781a69accd35d9ba9fddac80e.zip
In cancel_descriptor_fetches(), use connection_list_by_type_purpose() instead of connection_list_by_type_state()
Diffstat (limited to 'src/feature/hs/hs_client.c')
-rw-r--r--src/feature/hs/hs_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index b5030da473..6656ab2edb 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -145,7 +145,7 @@ static void
cancel_descriptor_fetches(void)
{
smartlist_t *conns =
- connection_list_by_type_state(CONN_TYPE_DIR, DIR_PURPOSE_FETCH_HSDESC);
+ connection_list_by_type_purpose(CONN_TYPE_DIR, DIR_PURPOSE_FETCH_HSDESC);
SMARTLIST_FOREACH_BEGIN(conns, connection_t *, conn) {
const hs_ident_dir_conn_t *ident = TO_DIR_CONN(conn)->hs_ident;
if (BUG(ident == NULL)) {