Prevent SRV assert when called from misconfigured bridge auth.

This commit is contained in:
George Kadianakis 2017-03-01 15:56:29 +02:00
parent efa5bbaba0
commit 931948ac6a
2 changed files with 5 additions and 1 deletions

4
changes/bug21586 Normal file
View file

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

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