From 020dd82b59896eb29eae594cfa33248d5e74901d Mon Sep 17 00:00:00 2001 From: dtucker <> Date: Fri, 22 Jul 2005 08:58:56 +0000 Subject: [PATCH] Skip invalid interfaces during 'listen on *'; ok henning@ --- src/usr.sbin/ntpd/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/server.c b/src/usr.sbin/ntpd/server.c index 1fdd3991..d8b78151 100644 --- a/src/usr.sbin/ntpd/server.c +++ b/src/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 @@ -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))