[tor-bugs] #22779 [Core Tor/Tor]: choose_good_entry_server() is no longer used to choose entry guards

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jun 30 01:30:14 UTC 2017


#22779: choose_good_entry_server() is no longer used to choose entry guards
------------------------------+--------------------------------
     Reporter:  teor          |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.1.x-final
    Component:  Core Tor/Tor  |    Version:  Tor: 0.3.0.1-alpha
     Severity:  Normal        |   Keywords:  maybe-030-backport
Actual Points:                |  Parent ID:
       Points:  0.5           |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 choose_good_entry_server() says:
 {{{
  * If <b>state</b> is NULL, we're choosing a router to serve as an entry
  * guard, not for any particular circuit.
 }}}

 But in 0.3.0 and later, we use guardsets to choose entry guards.
 (And we use this function to choose individual entries.)

 We should:
 * fix the comment,
 * check for NULL state (and do what?), and
 * make sure that guard selection and entry selection doesn't get out of
 sync. (I think we're ok here, but I don't understand the new guard code
 very well.)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22779>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list