From 6ba7fad2a76aa3e112c4f718bde896e147d10ffc Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 30 May 2016 13:59:01 +0200 Subject: [PATCH] reference: suppress orphan option in special reference modes This allows a server that will become the orphan source to initialize its time with the initstepslew directive from the current orphan source or its clients. --- reference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference.c b/reference.c index 4f4ced5..1700186 100644 --- a/reference.c +++ b/reference.c @@ -1248,7 +1248,7 @@ REF_GetOurStratum(void) int REF_GetOrphanStratum(void) { - if (!enable_local_stratum || !local_orphan) + if (!enable_local_stratum || !local_orphan || mode != REF_ModeNormal) return NTP_MAX_STRATUM; return local_stratum; }