]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
In cancel_descriptor_fetches(), use connection_list_by_type_purpose() instead of...
authorNeel Chauhan <neel@neelc.org>
Thu, 5 Dec 2019 18:40:49 +0000 (13:40 -0500)
committerNeel Chauhan <neel@neelc.org>
Tue, 10 Dec 2019 17:00:38 +0000 (12:00 -0500)
changes/bug32639 [new file with mode: 0644]
src/feature/hs/hs_client.c

diff --git a/changes/bug32639 b/changes/bug32639
new file mode 100644 (file)
index 0000000..1237ba0
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (onion services):
+    - In cancel_descriptor_fetches(), use connection_list_by_type_purpose()
+      instead of connection_list_by_type_state(). Fixes bug 32639; bugfix on
+      0.3.2.1-alpha. Patch by Neel Chauhan.
index b5030da4731e92ef86949febd258f9766f701f73..6656ab2edb9b846ae522732ccd240a1085a8503c 100644 (file)
@@ -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)) {