]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Re-add the removed address family check.
authorrl1987 <rl1987@sdf.lonestar.org>
Sat, 9 Jan 2016 14:03:54 +0000 (15:03 +0100)
committerrl1987 <rl1987@sdf.lonestar.org>
Sat, 9 Jan 2016 14:03:54 +0000 (15:03 +0100)
src/common/address.c

index f12f1403f2cd97105df32b04593056e440687246..3ffa15e1c457dc1eb0f794d73e25256e00c2c1e6 100644 (file)
@@ -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)