[openssh-commits] [openssh] 01/01: avoid AF_LINK on platforms that don't define it

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Jul 17 14:56:31 AEST 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit c6fad2c3d19b74f0bd0af1ef040fc74f3a1d9ebb
Author: Damien Miller <djm at mindrot.org>
Date:   Mon Jul 17 14:56:14 2023 +1000

    avoid AF_LINK on platforms that don't define it
---
 readconf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/readconf.c b/readconf.c
index 5418ace8..debb0c41 100644
--- a/readconf.c
+++ b/readconf.c
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list