diff options
Diffstat (limited to 'contrib/ntp/ntpd/refclock_acts.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_acts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ntp/ntpd/refclock_acts.c b/contrib/ntp/ntpd/refclock_acts.c index efdf536fe8dd..d26ceed9a521 100644 --- a/contrib/ntp/ntpd/refclock_acts.c +++ b/contrib/ntp/ntpd/refclock_acts.c @@ -733,8 +733,9 @@ acts_receive ( * waiting for carrier loss or long-space disconnect, but we do * these clumsy things anyway. */ - record_clock_stats(&peer->srcadr, pp->a_lastcode); + pp->lastref = pp->lastrec; refclock_receive(peer); + record_clock_stats(&peer->srcadr, pp->a_lastcode); pp->sloppyclockflag &= ~CLK_FLAG1; up->pollcnt = 0; (void)write(pp->io.fd, &hangup, 1); @@ -800,7 +801,7 @@ acts_timeout ( acts_disc(peer); return; } - switch (peer->ttlmax) { + switch (peer->ttl) { /* * In manual mode the ACTS calling program is activated |