]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix: use the right list in find_expiring_intro_point()
authorDavid Goulet <dgoulet@ev0ke.net>
Mon, 23 Nov 2015 14:02:54 +0000 (09:02 -0500)
committerDavid Goulet <dgoulet@ev0ke.net>
Mon, 23 Nov 2015 14:02:54 +0000 (09:02 -0500)
The wrong list was used when looking up expired intro points in a rend
service object causing what we think could be reachability issues and
triggering a BUG log.

Fixes #16702

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
changes/bug16702 [new file with mode: 0644]
src/or/rendservice.c

diff --git a/changes/bug16702 b/changes/bug16702
new file mode 100644 (file)
index 0000000..5de36cd
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (hidden service)
+    - The wrong list was used when looking up expired intro points in a rend
+      service object causing what we think could be reachability issues and
+      triggering a BUG log. Fixes 16702; bugfix on tor-0.2.7.2-alpha.
index 8ba5327b1dea232a0eef8b4ccca52449a25a2f76..77d8b716a277d0afdbbbbe0a2ca7fa032531a487 100644 (file)
@@ -3038,7 +3038,8 @@ find_expiring_intro_point(rend_service_t *service, origin_circuit_t *circ)
   tor_assert(TO_CIRCUIT(circ)->purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO ||
              TO_CIRCUIT(circ)->purpose == CIRCUIT_PURPOSE_S_INTRO);
 
-  SMARTLIST_FOREACH(service->intro_nodes, rend_intro_point_t *, intro_point,
+  SMARTLIST_FOREACH(service->expiring_nodes, rend_intro_point_t *,
+                    intro_point,
     if (crypto_pk_eq_keys(intro_point->intro_key, circ->intro_key)) {
       return intro_point;
   });