From 0c7a1d49ed79b435db1bf40baa06c86496347442 Mon Sep 17 00:00:00 2001 From: naddy <> Date: Sat, 31 Oct 2015 19:32:18 +0000 Subject: [PATCH] fully revert some parts introduced with the original server rtable support, so servers with numeric IP addresses won't be skipped; ok reyk@ --- src/usr.sbin/ntpd/parse.y | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/usr.sbin/ntpd/parse.y b/src/usr.sbin/ntpd/parse.y index 4b15df98..8da19a21 100644 --- a/src/usr.sbin/ntpd/parse.y +++ b/src/usr.sbin/ntpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.64 2015/10/23 14:52:20 phessler Exp $ */ +/* $OpenBSD: parse.y,v 1.65 2015/10/31 19:32:18 naddy Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -161,9 +161,7 @@ main : LISTEN ON address listen_opts { fatal(NULL); if (p->addr != NULL) p->state = STATE_DNS_DONE; - if (!(p->addr)) - TAILQ_INSERT_TAIL(&conf->ntp_peers, - p, entry); + TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry); h = next; } while (h != NULL); @@ -199,8 +197,7 @@ main : LISTEN ON address listen_opts { fatal(NULL); if (p->addr != NULL) p->state = STATE_DNS_DONE; - if (!(p->addr)) - TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry); + TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry); free($2->name); free($2); }