[Git][NTPsec/ntpsec][master] Fix for startup bug: issue 68
Hal Murray
gitlab at mg.gitlab.com
Mon Jun 20 01:56:54 UTC 2016
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
ed16e8a1 by Hal Murray at 2016-06-19T18:53:36-07:00
Fix for startup bug: issue 68
I'm not sure this is the correct fix, but it restores
the action broken by ntp-dev-4.2.7p385
- - - - -
1 changed file:
- ntpd/ntp_proto.c
Changes:
=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -3194,6 +3194,13 @@ peer_unfit(
if (!(peer->flags & FLAG_REFCLOCK) && root_distance(peer) >=
sys_maxdist + clock_phi * ULOGTOD(peer->hpoll))
rval |= BOGON11; /* distance exceeded */
+/* Startup bug, https://gitlab.com/NTPsec/ntpsec/issues/68
+ * introduced with ntp-dev-4.2.7p385
+ * [2085] Fix root distance and root dispersion calculations.
+ */
+ if (!(peer->flags & FLAG_REFCLOCK) && peer->disp >=
+ sys_maxdist + clock_phi * ULOGTOD(peer->hpoll))
+ rval |= BOGON11; /* Initialization */
/*
* A loop error occurs if the remote peer is synchronized to the
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ed16e8a1c1c700dd885b2254178b4dd6ee137d98
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160620/6cc31c0a/attachment.html>
More information about the vc
mailing list