[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #3023 [Tor Directory Authority]: Tor directory authorities should not act as regular relays/hsdirs



#3023: Tor directory authorities should not act as regular relays/hsdirs
-------------------------------------+--------------------------------------
 Reporter:  Sebastian                |          Owner:                    
     Type:  defect                   |         Status:  new               
 Priority:  normal                   |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Directory Authority  |        Version:                    
 Keywords:                           |         Parent:                    
   Points:                           |   Actualpoints:                    
-------------------------------------+--------------------------------------

Comment(by Sebastian):

 My idea was basically this:

 {{{
 index 58ceeda..3d7dd7e 100644
 --- a/src/or/dirserv.c
 +++ b/src/or/dirserv.c
 @@ -2699,7 +2699,8 @@
 dirserv_generate_networkstatus_vote_obj(crypto_pk_env_t *p
        vote_routerstatus_t *vrs;
        microdesc_t *md;
        node_t *node =
 node_get_mutable_by_id(ri->cache_info.identity_digest);
 -      if (!node)
 +      if (!node ||
 +          router_digest_is_trusted_dir(ri->cache_info.identity_digest))
          continue;

        vrs = tor_malloc_zero(sizeof(vote_routerstatus_t));
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3023#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs