]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix maxchange offset check
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Jun 2013 13:39:43 +0000 (15:39 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Jun 2013 16:32:16 +0000 (18:32 +0200)
reference.c

index 7f6b34daae1ebf73aa625cbc514f93b46d5b312d..100de25d65da1b28ccfb562d38887dd132597cc8 100644 (file)
@@ -717,7 +717,7 @@ REF_SetReference(int stratum,
   UTI_DiffTimevalsToDouble(&elapsed, &now, ref_time);
   our_offset = offset + elapsed * frequency;
 
-  if (!is_offset_ok(offset))
+  if (!is_offset_ok(our_offset))
     return;
 
   are_we_synchronised = leap != LEAP_Unsynchronised ? 1 : 0;