summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2002-07-28 07:48:30 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2002-07-28 07:48:30 +0000
commitf8801812cc74de68362964ce13f511c11ad6f93a (patch)
treec7bdd0f6fa713090e296033fb7e0a99604a4e29a /usr.sbin
parent2d4eb555f1190557425d02d8129cca1c2ca38d60 (diff)
call ntpleaps before trying to sync if needed
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rdate/ntp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rdate/ntp.c b/usr.sbin/rdate/ntp.c
index 1ff3a9c0e76..9cf2a823a6a 100644
--- a/usr.sbin/rdate/ntp.c
+++ b/usr.sbin/rdate/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.9 2002/07/27 20:11:34 jakob Exp $ */
+/* $OpenBSD: ntp.c,v 1.10 2002/07/28 07:48:29 jakob Exp $ */
/*
* Copyright (c) 1996, 1997 by N.M. Maclaren. All rights reserved.
@@ -129,6 +129,9 @@ ntp_client(const char *hostname, struct timeval *new, struct timeval *adjust)
/*NOTREACHED*/
}
+ if (corrleaps)
+ ntpleaps_init();
+
s = -1;
for (res = res0; res; res = res->ai_next) {
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);