summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpd/refclock_true.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/refclock_true.c')
-rw-r--r--contrib/ntp/ntpd/refclock_true.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/ntp/ntpd/refclock_true.c b/contrib/ntp/ntpd/refclock_true.c
index 986031d..dd355d9 100644
--- a/contrib/ntp/ntpd/refclock_true.c
+++ b/contrib/ntp/ntpd/refclock_true.c
@@ -503,6 +503,7 @@ true_receive(
refclock_report(peer, CEVNT_BADTIME);
return;
}
+ off.l_uf = 0;
#endif
pp->usec = true_sample720();
@@ -545,8 +546,9 @@ true_receive(
* If clock is good we send a NOMINAL message so that
* any previous BAD messages are nullified
*/
- refclock_report(peer, CEVNT_NOMINAL);
+ pp->lastref = pp->lastrec;
refclock_receive(peer);
+ refclock_report(peer, CEVNT_NOMINAL);
/*
* We have succedded in answering the poll.
OpenPOWER on IntegriCloud