From a2656a20bc40e3b5fad9efae66fe4bd4c4af30dd Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 3 Jun 2013 11:13:45 +0200 Subject: [PATCH] Fix poll timeout with symmetric peer and poll 0 --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 412bbc8..eac5a19 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1144,7 +1144,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins if (poll_to_use < inst->minpoll) poll_to_use = inst->minpoll; if (poll_to_use > inst->maxpoll) poll_to_use = inst->maxpoll; - delay_time = (double) (1UL<<(poll_to_use - 1)); + delay_time = (double) (1UL<