[tor-bugs] #2253 [Tor Relay]: Logic error in update_certificate_downloads

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Dec 5 07:24:57 UTC 2010


#2253: Logic error in update_certificate_downloads
-----------------------+----------------------------------------------------
 Reporter:  rransom    |       Owner:  nickm           
     Type:  defect     |      Status:  new             
 Priority:  normal     |   Milestone:                  
Component:  Tor Relay  |     Version:  Tor: unspecified
 Keywords:             |      Parent:                  
-----------------------+----------------------------------------------------
 In current Git master, the `update_certificate_downloads` function in
 src/or/networkstatus.c contains the following code:
 {{{
   if (current_ns_consensus)
     authority_certs_fetch_missing(current_ns_consensus, now);
   if (current_ns_consensus)
     authority_certs_fetch_missing(current_md_consensus, now);
 }}}

 The second `if` statement should test `current_md_consensus`, not
 `current_ns_consensus`.

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


More information about the tor-bugs mailing list