[tor-bugs] #18378 [Tor]: test_address_get_if_addrs_ifaddrs should check for NULL smartlist

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Feb 23 04:28:40 UTC 2016


#18378: test_address_get_if_addrs_ifaddrs should check for NULL smartlist
------------------------+--------------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  new
     Priority:  Medium  |  Milestone:  Tor: 0.2.8.x-final
    Component:  Tor     |    Version:
     Severity:  Normal  |   Keywords:  tests
Actual Points:          |  Parent ID:
       Points:          |    Sponsor:
------------------------+--------------------------------
 In test_address_get_if_addrs_ifaddrs, we should check for a NULL smartlist
 before calling SMARTLIST_FOREACH on it:

 {{{
   if (results) {
     SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
   }
 }}}

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


More information about the tor-bugs mailing list