Browse Source

Skip invalid interfaces during 'listen on *'; ok henning@

OPENBSD_3_8
dtucker 19 years ago
parent
commit
020dd82b59
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/usr.sbin/ntpd/server.c

+ 3
- 1
src/usr.sbin/ntpd/server.c View File

@ -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))


Loading…
Cancel
Save