diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index b0943d9e..0578d22c 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.81 2006/06/01 06:04:15 otto Exp $ */ +/* $OpenBSD: ntp.c,v 1.82 2006/06/02 20:45:34 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -442,7 +442,7 @@ priv_adjtime(void) TAILQ_FOREACH(s, &conf->ntp_sensors, entry) { if (!s->update.good) continue; - offset_cnt += p->weight; + offset_cnt += s->weight; } if ((offsets = calloc(offset_cnt, sizeof(struct ntp_offset *))) == NULL)