[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #18378 [Tor]: test_address_get_if_addrs_ifaddrs should check for NULL smartlist
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs