Browse Source

When expanding servers, do not forget to copy weight. ok henning@

OPENBSD_4_0
otto 18 years ago
parent
commit
5ca49f4a5e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/usr.sbin/ntpd/ntp.c

+ 2
- 1
src/usr.sbin/ntpd/ntp.c View File

@ -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> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -378,6 +378,7 @@ ntp_dispatch_imsg(void)
dlen -= sizeof(h->ss); dlen -= sizeof(h->ss);
if (peer->addr_head.pool) { if (peer->addr_head.pool) {
npeer = new_peer(); npeer = new_peer();
npeer->weight = peer->weight;
h->next = NULL; h->next = NULL;
npeer->addr = h; npeer->addr = h;
npeer->addr_head.a = h; npeer->addr_head.a = h;


Loading…
Cancel
Save