diff options
author | jakob <jakob@openbsd.org> | 2002-07-28 07:48:29 +0000 |
---|---|---|
committer | jakob <jakob@openbsd.org> | 2002-07-28 07:48:29 +0000 |
commit | 43a75b63e925a65224fc7d5d5b33935d0a9185fc (patch) | |
tree | 9cc007ebbe55f833798a4df7b03869c614d12316 /usr.sbin/rdate | |
parent | minor things from ac97 rev 2.3; mickey@ ok (diff) | |
download | wireguard-openbsd-43a75b63e925a65224fc7d5d5b33935d0a9185fc.tar.xz wireguard-openbsd-43a75b63e925a65224fc7d5d5b33935d0a9185fc.zip |
call ntpleaps before trying to sync if needed
Diffstat (limited to 'usr.sbin/rdate')
-rw-r--r-- | usr.sbin/rdate/ntp.c | 5 |
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); |