Browse Source

in priv_settime(), we must not adjust the 'next' timestamps on their for

the offset since we use monotime for these for some time now, and monotime
is not affected by system time changes (like, duh, that was the reason for
the change). PR5927
OPENBSD_4_5
henning 16 years ago
parent
commit
dafa0203af
1 changed files with 1 additions and 10 deletions
  1. +1
    -10
      src/usr.sbin/ntpd/ntp.c

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

@ -1,4 +1,4 @@
/* $OpenBSD: ntp.c,v 1.107 2008/09/12 10:46:09 henning Exp $ */
/* $OpenBSD: ntp.c,v 1.108 2008/10/02 14:00:21 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -674,17 +674,8 @@ offset_compare(const void *aa, const void *bb)
void
priv_settime(double offset)
{
struct ntp_peer *p;
imsg_compose(ibuf_main, IMSG_SETTIME, 0, 0, &offset, sizeof(offset));
conf->settime = 0;
TAILQ_FOREACH(p, &conf->ntp_peers, entry) {
if (p->next)
p->next -= offset;
if (p->deadline)
p->deadline -= offset;
}
}
void


Loading…
Cancel
Save