summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/server.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-14 20:16:32 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-14 20:16:32 +0000
commitaf269e45b655d42d9dec4a8a6abab8572f4ef3a9 (patch)
tree8a1605b508ec52f2e5e443446b3aede6a372093a /usr.sbin/ntpd/server.c
parent0c7878c6dee2f38874f425806185365fe2610622 (diff)
do not do the stratum guessing dance.
stratum is pretty much pointless anyway these days, and we certainly do not want to send out illegal packets (stratum=0) until synced...
Diffstat (limited to 'usr.sbin/ntpd/server.c')
-rw-r--r--usr.sbin/ntpd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/server.c b/usr.sbin/ntpd/server.c
index cea725918bb..25fdb861b75 100644
--- a/usr.sbin/ntpd/server.c
+++ b/usr.sbin/ntpd/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.10 2004/07/13 19:41:26 alexander Exp $ */
+/* $OpenBSD: server.c,v 1.11 2004/07/14 20:16:31 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -122,7 +122,7 @@ server_dispatch(int fd, struct ntpd_conf *conf)
else
reply.status |= MODE_SYM_PAS;
- reply.stratum = conf->status.stratum;
+ reply.stratum = 2;
reply.ppoll = query.ppoll;
reply.precision = conf->status.precision;
reply.rectime = d_to_lfp(rectime);