]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Dave fixed a bug in the pll/kernel control code, from a report by Joe Harvell
authorHarlan Stenn <stenn@ntp.org>
Fri, 22 Sep 2006 21:12:19 +0000 (17:12 -0400)
committerHarlan Stenn <stenn@ntp.org>
Fri, 22 Sep 2006 21:12:19 +0000 (17:12 -0400)
bk: 451451b3c4lIrpgq1ks8ZOENvDmZXw

ntpd/ntp_loopfilter.c

index ab7c1e030d38032a4d982f1ede2a53f035a30b4a..b12fccee1ea86b29e18027d0136b28cb8b391a6e 100644 (file)
@@ -544,7 +544,8 @@ local_clock(
         * lead to overflow problems. This might occur if some misguided
         * lad set the step threshold to something ridiculous.
         */
-       if (pll_control && kern_enable && clock_max < 0.5) {
+       if (pll_control && kern_enable && clock_max < 0.5 &&
+           clock_max > 0) {
 
                /*
                 * We initialize the structure for the ntp_adjtime()