]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Consider dir info to have changed when the bridges change
authorNick Mathewson <nickm@torproject.org>
Fri, 31 May 2019 15:46:58 +0000 (11:46 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 31 May 2019 16:27:42 +0000 (12:27 -0400)
Otherwise, we won't realize that we haven't got enough bridge
information to build circuits.  Part of a fix for ticket 29875.

src/app/config/config.c

index 2a504d3065f1aed084e95726cc47fff9a467b12c..7f6657db3ce5d997682e5cb6d1beaae7a830fff4 100644 (file)
@@ -2412,7 +2412,8 @@ options_act(const or_options_t *old_options)
     if (!bool_eq(directory_fetches_dir_info_early(options),
                  directory_fetches_dir_info_early(old_options)) ||
         !bool_eq(directory_fetches_dir_info_later(options),
-                 directory_fetches_dir_info_later(old_options))) {
+                 directory_fetches_dir_info_later(old_options)) ||
+        !config_lines_eq(old_options->Bridges, options->Bridges)) {
       /* Make sure update_router_have_minimum_dir_info() gets called. */
       router_dir_info_changed();
       /* We might need to download a new consensus status later or sooner than