summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-30 11:52:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-30 11:52:05 +0000
commit3e1738b7abaef71ff869c0b3d52a30497a86e868 (patch)
treec477b164b63926be2befa5a660fd45b1355916a9 /usr.sbin
parent6f2212afec7bcf1e501f2e6913c9d27301119332 (diff)
skip early DNS lookups -- they are deferred to later; ok otto ho henning
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/config.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/ntpd/config.c b/usr.sbin/ntpd/config.c
index e48c8515709..cb9f68b9e95 100644
--- a/usr.sbin/ntpd/config.c
+++ b/usr.sbin/ntpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.12 2004/08/24 15:23:19 henning Exp $ */
+/* $OpenBSD: config.c,v 1.13 2004/08/30 11:52:04 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -40,7 +40,6 @@ int
host(const char *s, struct ntp_addr **hn)
{
struct ntp_addr *h = NULL;
- int cnt = 1;
if (!strcmp(s, "*"))
if ((h = calloc(1, sizeof(struct ntp_addr))) == NULL)
@@ -54,12 +53,9 @@ host(const char *s, struct ntp_addr **hn)
if (h == NULL)
h = host_v6(s);
- /* Hostname? */
if (h == NULL)
- cnt = host_dns(s, &h);
-
- *hn = h;
- return (cnt);
+ return (0);
+ return (1);
}
struct ntp_addr *