summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/client.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-03-08 12:31:41 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-03-08 12:31:41 +0000
commit057086b208ecadc785e1ab333fd071e55d5ded36 (patch)
tree747a312e547df25002058d72041eb3509eb5d33b /usr.sbin/ntpd/client.c
parent273322bf7cf78b85342eff76d1ab8fe37af46107 (diff)
let client_query return 0 if it requested dns resolution
Diffstat (limited to 'usr.sbin/ntpd/client.c')
-rw-r--r--usr.sbin/ntpd/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index 704de0bcf8a..8d7388a37e2 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.57 2005/02/21 17:58:43 henning Exp $ */
+/* $OpenBSD: client.c,v 1.58 2005/03/08 12:31:40 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -116,7 +116,7 @@ client_query(struct ntp_peer *p)
if (p->addr == NULL && client_nextaddr(p) == -1) {
set_next(p, error_interval());
- return (-1);
+ return (0);
}
if (p->query->fd == -1) {