diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-15 01:05:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-15 01:05:10 +0000 |
commit | 47d654aedbfddf022f8347263f6ac2e79696c59d (patch) | |
tree | 7523bbe90e280ac20f6345bafdc835b03df80991 /usr.sbin/rdate/ntp.c | |
parent | 11f8f16564b7c833549136fed284c39d42279460 (diff) |
don't refuse packets with stratum=0, they are fine
Diffstat (limited to 'usr.sbin/rdate/ntp.c')
-rw-r--r-- | usr.sbin/rdate/ntp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/rdate/ntp.c b/usr.sbin/rdate/ntp.c index 373f923e607..82bfee6073b 100644 --- a/usr.sbin/rdate/ntp.c +++ b/usr.sbin/rdate/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.23 2004/07/14 20:11:16 henning Exp $ */ +/* $OpenBSD: ntp.c,v 1.24 2004/09/15 01:05:09 henning Exp $ */ /* * Copyright (c) 1996, 1997 by N.M. Maclaren. All rights reserved. @@ -67,7 +67,6 @@ #define NTP_VERSION 4 /* The current version */ #define NTP_VERSION_MIN 1 /* The minum valid version */ #define NTP_VERSION_MAX 4 /* The maximum valid version */ -#define NTP_STRATUM_MIN 1 /* The minum valid stratum */ #define NTP_STRATUM_MAX 14 /* The maximum valid stratum */ #define NTP_INSANITY 3600.0 /* Errors beyond this are hopeless */ @@ -371,8 +370,7 @@ retry: return 1; } - if (data->stratum < NTP_STRATUM_MIN || - data->stratum > NTP_STRATUM_MAX) { + if (data->stratum > NTP_STRATUM_MAX) { warnx("Invalid stratum received, packet rejected"); return 1; } |