[tor-bugs] #4676 [Tor Relay]: Eliminate "family" field in tor_addr_t

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Dec 9 16:26:50 UTC 2011


#4676: Eliminate "family" field in tor_addr_t
-------------------------+--------------------------------------------------
 Reporter:  nickm        |          Owner:                    
     Type:  enhancement  |         Status:  needs_review      
 Priority:  normal       |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Relay    |        Version:                    
 Keywords:               |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------

Comment(by nickm):

 >00:19 < wanoskarnet> re branch "short_address_rep": any explicitly non
 inited tor_addr_t structs will have AF_INET6 family, that hides exist
 family related bugs.

 I think the answer to that one is going to have to be: always use
 tor_addr_make_unspec, not memset(0), to initialize tor_addr_t fields.

 Special-casing the address [::] seems like a bad move to me.

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


More information about the tor-bugs mailing list