summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/server.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-10-22 21:17:38 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-10-22 21:17:38 +0000
commit3f1293c0ad68c13d655ccde898aed2224c143d35 (patch)
tree326daa67a0d507a572a64ef8dac9ec2f08510869 /usr.sbin/ntpd/server.c
parent900ef52dfdd08a0d57b291bd941f974c1c7dd81a (diff)
in server mode reply with stratum from the peer that we currently prefer
plus one
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 c9228e79b2d..50dbfefc5e8 100644
--- a/usr.sbin/ntpd/server.c
+++ b/usr.sbin/ntpd/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.17 2004/10/15 01:58:04 dtucker Exp $ */
+/* $OpenBSD: server.c,v 1.18 2004/10/22 21:17:37 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -134,7 +134,7 @@ server_dispatch(int fd, struct ntpd_conf *conf)
else
reply.status |= MODE_SYM_PAS;
- reply.stratum = 2;
+ reply.stratum = conf->status.stratum;
reply.ppoll = query.ppoll;
reply.precision = conf->status.precision;
reply.rectime = d_to_lfp(rectime);