summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-06-01 06:04:16 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-06-01 06:04:16 +0000
commit5a20171af4f2c62ec9456d0c7b4b040526f30bb5 (patch)
tree93b33932716713b229600981ca79044764948704 /usr.sbin
parent71508776394c0a2dc219948b935b9a37cbf31dcb (diff)
When expanding servers, do not forget to copy weight. ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/ntp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 1e2c2271ae6..b0943d9e8a0 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.80 2006/06/01 05:44:35 henning Exp $ */
+/* $OpenBSD: ntp.c,v 1.81 2006/06/01 06:04:15 otto Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -378,6 +378,7 @@ ntp_dispatch_imsg(void)
dlen -= sizeof(h->ss);
if (peer->addr_head.pool) {
npeer = new_peer();
+ npeer->weight = peer->weight;
h->next = NULL;
npeer->addr = h;
npeer->addr_head.a = h;