commit fd26c1d994e88fbfc8546551e59633679cae5c78 Author: rl1987 rl1987@sdf.lonestar.org Date: Sat Jan 9 15:03:54 2016 +0100
Re-add the removed address family check. --- src/common/address.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/common/address.c b/src/common/address.c index f12f140..3ffa15e 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -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)
tor-commits@lists.torproject.org