[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #11200 [Tor]: cached consensus inteferes with DisableNetwork=1



#11200: cached consensus inteferes with DisableNetwork=1
-------------------------+-------------------------------------------------
     Reporter:  mcs      |      Owner:
         Type:  defect   |     Status:  reopened
     Priority:  major    |  Milestone:  Tor: 0.2.5.x-final
    Component:  Tor      |    Version:  Tor: 0.2.4.21
   Resolution:           |   Keywords:  tor-client, 024-backport,
Actual Points:           |  025-triaged, andrea-review-0254, tbb-tor-
       Points:           |  backported-3.6b2, TorBrowserTeam201408
                         |  Parent ID:
-------------------------+-------------------------------------------------

Comment (by cypherpunks):

 More clear patch.
 {{{
 --- config.c
 +++ config_3.c
 @@ -1806,6 +1806,14 @@
        options_transition_affects_descriptor(old_options, options))
      mark_my_descriptor_dirty("config change");

 +  /* We may need to call update_router_have_min_dir_info. If network was
 +   * enabled then circuits building need to be enabled too, give it
 chance
 +   * by recalculate cached have_min_dir_info value on next call of
 +   * router_have_minimum_dir_info().
 +   */
 +  if (old_options && old_options->DisableNetwork && !
 options->DisableNetwork)
 +    router_dir_info_changed();
 +
    /* We may need to reschedule some directory stuff if our status
 changed. */
    if (old_options) {
      if (authdir_mode_v3(options) && !authdir_mode_v3(old_options))
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11200#comment:21>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs