]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: fix adjustment of init_local_rx timestamp
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Mar 2018 13:56:57 +0000 (14:56 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Mar 2018 13:59:41 +0000 (14:59 +0100)
This fixes commit f0f18a02a7d97a3cfb4cd9977f5ec12c6b1f1028.

ntp_core.c

index 44d4870556e7e8b6e0a1b5c0c80a4e08adae8c5f..a71ee439ac9a5dcd02f17f5bcff2f43539d98cc1 100644 (file)
@@ -2268,7 +2268,7 @@ NCR_SlewTimes(NCR_Instance inst, struct timespec *when, double dfreq, double dof
     UTI_AdjustTimespec(&inst->prev_local_tx.ts, when, &inst->prev_local_tx.ts, &delta, dfreq,
                        doffset);
   if (!UTI_IsZeroTimespec(&inst->init_local_rx.ts))
-    UTI_AdjustTimespec(&inst->init_local_rx.ts, when, &inst->local_rx.ts, &delta, dfreq,
+    UTI_AdjustTimespec(&inst->init_local_rx.ts, when, &inst->init_local_rx.ts, &delta, dfreq,
                        doffset);
 }