Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#18378 closed defect (fixed)

test_address_get_if_addrs_ifaddrs should check for NULL smartlist

Reported by: teor Owned by:
Priority: Medium Milestone: Tor: 0.2.8.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tests
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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));
  }

Child Tickets

Change History (2)

comment:1 Changed 3 years ago by nickm

b3534dfc5e85c82e915c1576a8a58500fdd7c878 should fix this

comment:2 Changed 3 years ago by nickm

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.