Sfoglia il codice sorgente

Prevent SRV assert when called from misconfigured bridge auth.

George Kadianakis 7 anni fa
parent
commit
931948ac6a
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 4 0
      changes/bug21586
  2. 1 1
      src/or/main.c

+ 4 - 0
changes/bug21586

@@ -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.

+ 1 - 1
src/or/main.c

@@ -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;
     }