[tor-bugs] #5380 [Tor Client]: clients that never restart never drop old guards

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Mar 13 16:37:54 UTC 2012


#5380: clients that never restart never drop old guards
------------------------+---------------------------------------------------
 Reporter:  arma        |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  major       |      Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by arma):

 Here's the minimal patch:
 {{{
 diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
 index 3948008..a0216d1 100644
 --- a/src/or/circuitbuild.c
 +++ b/src/or/circuitbuild.c
 @@ -3862,6 +3867,8 @@ entry_guards_compute_status(const or_options_t
 *options,

    if (remove_dead_entry_guards(now))
      changed = 1;
 +  if (remove_obsolete_entry_guards(now))
 +    changed = 1;

    if (changed) {
      SMARTLIST_FOREACH_BEGIN(entry_guards, entry_guard_t *, entry) {
 }}}

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


More information about the tor-bugs mailing list