summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rdate
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-07-14 20:11:16 +0000
committerhenning <henning@openbsd.org>2004-07-14 20:11:16 +0000
commit3fd6f88383f48fa7ca1d0bb93ccbe0d25870827f (patch)
tree4ea2d4a6d6ba96ed0537fcc96cd52e656dc7fb2f /usr.sbin/rdate
parent* when writing to an RCS file, escape the funny characters (diff)
downloadwireguard-openbsd-3fd6f88383f48fa7ca1d0bb93ccbe0d25870827f.tar.xz
wireguard-openbsd-3fd6f88383f48fa7ca1d0bb93ccbe0d25870827f.zip
do not bail out if the server says its clock is unsynchronized.
rdate is a simple client and doesn't have another server to query, and a server's idea of the time is better than the local clock's one in basically any case.
Diffstat (limited to 'usr.sbin/rdate')
-rw-r--r--usr.sbin/rdate/ntp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/rdate/ntp.c b/usr.sbin/rdate/ntp.c
index fc8d2b4fd1b..373f923e607 100644
--- a/usr.sbin/rdate/ntp.c
+++ b/usr.sbin/rdate/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.22 2004/06/17 18:09:33 alexander Exp $ */
+/* $OpenBSD: ntp.c,v 1.23 2004/07/14 20:11:16 henning Exp $ */
/*
* Copyright (c) 1996, 1997 by N.M. Maclaren. All rights reserved.
@@ -377,11 +377,6 @@ retry:
return 1;
}
- if (data->status == STATUS_ALARM) {
- warnx("Server clock not synchronized, packet rejected");
- return 1;
- }
-
if (data->transmit == 0.0) {
warnx("Server clock invalid, packet rejected");
return 1;