diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2016-01-09 15:03:54 +0100 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2016-01-09 15:03:54 +0100 |
commit | fd26c1d994e88fbfc8546551e59633679cae5c78 (patch) | |
tree | 032c2840458ecfae0f7eb1f6bab14ae9156f1aa2 /src/common/address.c | |
parent | 680d0701e53fe583b2a048b4a3a60f6fea176b64 (diff) | |
download | tor-fd26c1d994e88fbfc8546551e59633679cae5c78.tar.gz tor-fd26c1d994e88fbfc8546551e59633679cae5c78.zip |
Re-add the removed address family check.
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |