]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
avoid AF_LINK on platforms that don't define it
authorDamien Miller <djm@mindrot.org>
Mon, 17 Jul 2023 04:56:14 +0000 (14:56 +1000)
committerDamien Miller <djm@mindrot.org>
Mon, 17 Jul 2023 04:56:14 +0000 (14:56 +1000)
readconf.c

index 5418ace8b647c28612f698d03fe21527ed1dbe7f..debb0c417390dcd4b383a830510cbaae7ad52c6c 100644 (file)
@@ -609,9 +609,11 @@ check_match_ifaddrs(const char *addrlist)
                case AF_INET6:
                        salen = sizeof(struct sockaddr_in6);
                        break;
+#ifdef AF_LINK
                case AF_LINK:
                        /* ignore */
                        continue;
+#endif /* AF_LINK */
                default:
                        debug2_f("interface %s: unsupported address family %d",
                            ifa->ifa_name, ifa->ifa_addr->sa_family);