diff options
Diffstat (limited to 'usr.sbin/ntpd/client.c')
-rw-r--r-- | usr.sbin/ntpd/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 65fad7139b4..60ffcd17f95 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.69 2006/06/04 18:58:13 otto Exp $ */ +/* $OpenBSD: client.c,v 1.70 2006/06/07 06:29:03 otto Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -161,7 +161,7 @@ client_query(struct ntp_peer *p) p->query->msg.xmttime.int_partl = arc4random(); p->query->msg.xmttime.fractionl = arc4random(); - p->query->xmttime = gettime(); + p->query->xmttime = gettime_corrected(); if (ntp_sendmsg(p->query->fd, NULL, &p->query->msg, NTP_MSGSIZE_NOAUTH, 0) == -1) { @@ -196,7 +196,7 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) fatal("recvfrom"); } - T4 = gettime(); + T4 = gettime_corrected(); ntp_getmsg((struct sockaddr *)&p->addr->ss, buf, size, &msg); |