From b198d766762ddf96c40d48d7ab0fc086e054a375 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 19 Jan 2017 11:31:26 +0100 Subject: [PATCH] ntp: include precision in maxdelay test --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 169e2889..4f911d63 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1475,7 +1475,7 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr, processing time is sane, and in the interleaved symmetric mode that the delay is not longer than half of the remote polling interval to detect missed packets */ - testA = delay - dispersion <= inst->max_delay && + testA = delay - dispersion <= inst->max_delay && precision <= inst->max_delay && !(inst->mode == MODE_CLIENT && server_interval > MAX_SERVER_INTERVAL) && !(inst->mode == MODE_ACTIVE && interleaved_packet && delay > UTI_Log2ToDouble(message->poll - 1)); -- 2.47.3