[tor-bugs] #24734 [Core Tor/Tor]: Remove the return value of fascist_firewall_choose_address_node()

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 7 21:35:23 UTC 2018


#24734: Remove the return value of fascist_firewall_choose_address_node()
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:  neel
     Type:  defect                               |         Status:
                                                 |  assigned
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.4.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  ipv6, tor-relay,                     |  Actual Points:
  034-triage-20180328, 034-removed-20180328      |
Parent ID:  #24403                               |         Points:  0.5
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by teor):

 Please change both functions so they do not return any values.

 If they would have returned an error value, make sure that the address
 they return in the pointer is the null address. I think you can generate a
 null address using tor_addr_make_null() or similar. See get_pref_orport()
 and fet_prim_orport() for examples of similar functions.

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


More information about the tor-bugs mailing list