]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
reference: don't update fallback drift on manual input
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 18 Aug 2017 15:43:02 +0000 (17:43 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 23 Aug 2017 13:01:30 +0000 (15:01 +0200)
This fixes a crash due to assertion failure in update_fb_drifts() when
fallbackdrift is enabled and manual input is provided.

reference.c

index 4cf8809a685c35615dd7b2719d91acad07bdeb5d..b49d4c7bb9a5e5106b42db3d620ac53c86848a44 100644 (file)
@@ -1076,7 +1076,7 @@ REF_SetReference(int stratum,
   }
 
   /* Update fallback drifts */
-  if (fb_drifts) {
+  if (fb_drifts && are_we_synchronised) {
     update_fb_drifts(abs_freq_ppm, update_interval);
     schedule_fb_drift(&now);
   }