Browse Source

let client_query return 0 if it requested dns resolution

OPENBSD_3_7
henning 20 years ago
parent
commit
6801136c41
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/client.c

+ 2
- 2
src/usr.sbin/ntpd/client.c View File

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


Loading…
Cancel
Save