[tor-bugs] #27236 [Core Tor/Tor]: Check all

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Aug 21 09:23:01 UTC 2018


#27236: Check all
-------------------------+-------------------------------------------------
     Reporter:  teor     |      Owner:  teor
         Type:  defect   |     Status:  assigned
     Priority:  Medium   |  Milestone:  Tor: 0.3.5.x-final
    Component:  Core     |    Version:  Tor: 0.2.6.3-alpha
  Tor/Tor                |   Keywords:  034-must, 035-must, regression,
     Severity:  Normal   |  tor-bridge 034-backport
Actual Points:           |  Parent ID:  #27080
       Points:           |   Reviewer:
      Sponsor:           |
-------------------------+-------------------------------------------------
 We need to check exit policies whenever we're counting the usable exit
 descriptors. At the moment, we only check exit policies for exits in
 ExitNodes.
 {{{
     SMARTLIST_FOREACH_BEGIN(myexits_unflagged, const node_t *, node) {
       if (node_has_preferred_descriptor(node, 0) &&
           node_exit_policy_rejects_all(node)) {
         SMARTLIST_DEL_CURRENT(myexits_unflagged, node);
         /* this node is not actually an exit */
         np--;
         /* this node is unusable as an exit */
         nu--;
       }
     } SMARTLIST_FOREACH_END(node);
 }}}

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


More information about the tor-bugs mailing list