From 5ca49f4a5e900d385cb9d1a6a6d3c945cd367daa Mon Sep 17 00:00:00 2001 From: otto <> Date: Thu, 1 Jun 2006 06:04:15 +0000 Subject: [PATCH] When expanding servers, do not forget to copy weight. ok henning@ --- src/usr.sbin/ntpd/ntp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index 1e2c2271..b0943d9e 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/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 @@ -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;