diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2005-07-22 08:58:57 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2005-07-22 08:58:57 +0000 |
commit | f3766228c55b5c8691c1046a9fcf74d4657a2551 (patch) | |
tree | aaafbc47a89d3a20e27537fb0d2b3a18d9b9529e /usr.sbin/ntpd/server.c | |
parent | 1cfbbfc169303d648e86b0b112c4960c19a3b0a2 (diff) |
Skip invalid interfaces during 'listen on *'; ok henning@
Diffstat (limited to 'usr.sbin/ntpd/server.c')
-rw-r--r-- | usr.sbin/ntpd/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/server.c b/usr.sbin/ntpd/server.c index 1fdd39912db..d8b78151839 100644 --- a/usr.sbin/ntpd/server.c +++ b/usr.sbin/ntpd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.23 2005/07/05 10:09:12 dtucker Exp $ */ +/* $OpenBSD: server.c,v 1.24 2005/07/22 08:58:56 dtucker Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -44,6 +44,8 @@ setup_listeners(struct servent *se, struct ntpd_conf *conf, u_int *cnt) for (ifap = ifa; ifap != NULL; ifap = ifap->ifa_next) { sa = ifap->ifa_addr; + if (SA_LEN(sa) == 0) + continue; if (sa == NULL || (sa->sa_family != AF_INET && sa->sa_family != AF_INET6)) |