]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Prevent SRV assert when called from misconfigured bridge auth.
authorGeorge Kadianakis <desnacked@riseup.net>
Wed, 1 Mar 2017 13:56:29 +0000 (15:56 +0200)
committerGeorge Kadianakis <desnacked@riseup.net>
Wed, 1 Mar 2017 13:56:29 +0000 (15:56 +0200)
changes/bug21586 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/bug21586 b/changes/bug21586
new file mode 100644 (file)
index 0000000..200d55a
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfix (directory authority):
+    - Prevent the shared randomness subsystem from asserting when initialized
+      by a bridge authority with an incomplete configuration file. Fixes bug
+      #21856; bugfix on 0.2.9.8.
index 5549f97998779e660f1a5e0c010a4fd128f71902..475587eacd7adaa032d20a92974f02aa439ba403 100644 (file)
@@ -2405,7 +2405,7 @@ do_main_loop(void)
   }
 
   /* Setup shared random protocol subsystem. */
-  if (authdir_mode_publishes_statuses(get_options())) {
+  if (authdir_mode_v3(get_options())) {
     if (sr_init(1) < 0) {
       return -1;
     }