mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Re-add the removed address family check.
This commit is contained in:
@@ -1285,6 +1285,9 @@ ifaddrs_to_smartlist(const struct ifaddrs *ifa, sa_family_t family)
|
||||
continue;
|
||||
if (!i->ifa_addr)
|
||||
continue;
|
||||
if (i->ifa_addr->sa_family != AF_INET &&
|
||||
i->ifa_addr->sa_family != AF_INET6)
|
||||
continue;
|
||||
if (family != AF_UNSPEC && i->ifa_addr->sa_family != family)
|
||||
continue;
|
||||
if (tor_addr_from_sockaddr(&tmp, i->ifa_addr, NULL) < 0)
|
||||
|
||||
Reference in New Issue
Block a user