[tor-commits] [tor/master] Look at the correct protocol for supports_v3_rendezvous_point

nickm at torproject.org nickm at torproject.org
Wed Jan 31 19:34:28 UTC 2018


commit bbf2d9cf6bb97c3e15ada5803681f856b844c2ff
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jan 31 14:01:49 2018 -0500

    Look at the correct protocol for supports_v3_rendezvous_point
    
    Fixes bug 25105; bugfix on 0.3.2.1-alpha.
---
 changes/bug25105     | 5 +++++
 src/or/routerparse.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/changes/bug25105 b/changes/bug25105
new file mode 100644
index 000000000..36d1a5f16
--- /dev/null
+++ b/changes/bug25105
@@ -0,0 +1,5 @@
+  o Minor bugfixes (v3 onion services):
+    - Look at the "HSRend" protocol version, not the "HSDir" protocol
+      version, when deciding whether a consensus entry can support
+      the v3 onion service protocol as a rendezvous point.
+      Fixes bug 25105; bugfix on 0.3.2.1-alpha.
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 54759c9a7..fc071b11d 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2565,7 +2565,7 @@ summarize_protover_flags(protover_summary_flags_t *out,
       protocol_list_supports_protocol(protocols, PRT_HSDIR,
                                       PROTOVER_HSDIR_V3);
     out->supports_v3_rendezvous_point =
-      protocol_list_supports_protocol(protocols, PRT_HSDIR,
+      protocol_list_supports_protocol(protocols, PRT_HSREND,
                                       PROTOVER_HS_RENDEZVOUS_POINT_V3);
   }
   if (version && !strcmpstart(version, "Tor ")) {





More information about the tor-commits mailing list