From: Miroslav Lichvar Date: Thu, 19 Jan 2017 10:31:26 +0000 (+0100) Subject: ntp: include precision in maxdelay test X-Git-Tag: 3.1-pre1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b198d766762ddf96c40d48d7ab0fc086e054a375;p=thirdparty%2Fchrony.git ntp: include precision in maxdelay test --- 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));