From: rl1987 Date: Sat, 9 Jan 2016 14:03:54 +0000 (+0100) Subject: Re-add the removed address family check. X-Git-Tag: tor-0.2.8.1-alpha~58^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=fd26c1d994e88fbfc8546551e59633679cae5c78;p=thirdparty%2Ftor.git Re-add the removed address family check. --- diff --git a/src/common/address.c b/src/common/address.c index f12f1403f2..3ffa15e1c4 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)