]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Changes file and comment for 25928.
authorNick Mathewson <nickm@torproject.org>
Mon, 9 Jul 2018 14:16:48 +0000 (10:16 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 9 Jul 2018 14:16:48 +0000 (10:16 -0400)
changes/ticket25928 [new file with mode: 0644]
src/feature/nodelist/routerlist.c

diff --git a/changes/ticket25928 b/changes/ticket25928
new file mode 100644 (file)
index 0000000..30759fc
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features (directory):
+    - Improved support for networks with only a single authority or a
+      single fallback directory. Patch from Gabriel Somlo. Closes
+      ticket 25928.
index be58a7a0743385516c8f13c337a70d88f184b3f9..12226fee64826f2c21e5b2486797ad84a5e702aa 100644 (file)
@@ -1806,8 +1806,11 @@ router_pick_dirserver_generic(smartlist_t *sourcelist,
   const routerstatus_t *choice;
   int busy = 0;
 
-  if (smartlist_len(sourcelist) == 1)
+  if (smartlist_len(sourcelist) == 1) {
+    /* If there's only one choice, then we should disable the logic that
+     * would otherwise prevent us from choosing ourself. */
     flags |= PDS_ALLOW_SELF;
+  }
 
   choice = router_pick_trusteddirserver_impl(sourcelist, type, flags, &busy);
   if (choice || !(flags & PDS_RETRY_IF_NO_SERVERS))