[tor-bugs] #6783 [Tor]: should not serve old v2 statuses

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 6 21:12:25 UTC 2013


#6783: should not serve old v2 statuses
----------------------+-----------------------------------------------------
 Reporter:  weasel    |          Owner:                    
     Type:  defect    |         Status:  needs_review      
 Priority:  critical  |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor       |        Version:  Tor: 0.2.3.20-rc  
 Keywords:  tor-auth  |         Parent:                    
   Points:            |   Actualpoints:                    
----------------------+-----------------------------------------------------

Comment(by weasel):

 When merging this with 0.2.4, apart from the obvious conflict that git
 points out (config stuff changed in both trees), this also needs the
 following to build:

 {{{
 --- a/src/or/directory.c
 +++ b/src/or/directory.c
 @@@@@ -2809,7 -2809,7 -2809,7 -2809,7 +2809,7 @@@@@
 directory_handle_command_get(dir_connec
           char *m;
           write_http_status_line(conn, 404, "Not found");
           smartlist_free(dir_fps);
 ----      geoip_note_ns_response(GEOIP_REJECT_NOT_FOUND);
 ++++      geoip_note_ns_response(act, GEOIP_REJECT_NOT_FOUND);
           if ((m = rate_limit_log(&reject_v2_ratelim, approx_time()))) {
             log_notice(LD_DIR, "Rejected a v2 networkstatus request.%s",
 m);
             tor_free(m);
 }}}

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


More information about the tor-bugs mailing list