From: Miroslav Lichvar Date: Fri, 18 Aug 2017 15:43:02 +0000 (+0200) Subject: reference: don't update fallback drift on manual input X-Git-Tag: 3.2-pre2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45fa4750dae0201782fff9782ad8a048928d9e4c;p=thirdparty%2Fchrony.git reference: don't update fallback drift on manual input This fixes a crash due to assertion failure in update_fb_drifts() when fallbackdrift is enabled and manual input is provided. --- diff --git a/reference.c b/reference.c index 4cf8809a..b49d4c7b 100644 --- a/reference.c +++ b/reference.c @@ -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); }