summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/client.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-20 16:47:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-20 16:47:56 +0000
commitc0994a25cb3e771d8ee589fb60bf9f35815eda76 (patch)
treee56a89f7c7f952b98dbafe0c9c2573265e1e176c /usr.sbin/ntpd/client.c
parent95c633c4f926f9a795d048bc6e68b877e88ce1e9 (diff)
wrap the heads for the linked list of addresses into a new ntp_addr_wrap
which, besides the head pointer for the list of course, stores the original address as specified (i. e. as hostname instead of resolved IPs) and flags and such.
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 e99ff71ecaf..de993cee523 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.27 2004/07/18 13:26:53 henning Exp $ */
+/* $OpenBSD: client.c,v 1.28 2004/07/20 16:47:55 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -74,7 +74,7 @@ client_nextaddr(struct ntp_peer *p)
close(p->query->fd);
if ((p->addr = p->addr->next) == NULL)
- p->addr = p->addr_head;
+ p->addr = p->addr_head.a;
if ((p->query->fd = socket(p->addr->ss.ss_family, SOCK_DGRAM, 0)) == -1)
fatal("client_query socket");