Browse Source

fully revert some parts introduced with the original server rtable support,

so servers with numeric IP addresses won't be skipped; ok reyk@
OPENBSD_5_9
naddy 9 years ago
parent
commit
0c7a1d49ed
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      src/usr.sbin/ntpd/parse.y

+ 3
- 6
src/usr.sbin/ntpd/parse.y View File

@ -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 <henning@openbsd.org> * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -161,9 +161,7 @@ main : LISTEN ON address listen_opts {
fatal(NULL); fatal(NULL);
if (p->addr != NULL) if (p->addr != NULL)
p->state = STATE_DNS_DONE; 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; h = next;
} while (h != NULL); } while (h != NULL);
@ -199,8 +197,7 @@ main : LISTEN ON address listen_opts {
fatal(NULL); fatal(NULL);
if (p->addr != NULL) if (p->addr != NULL)
p->state = STATE_DNS_DONE; 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->name);
free($2); free($2);
} }


Loading…
Cancel
Save