From: Miroslav Lichvar Date: Mon, 3 Jun 2013 09:13:45 +0000 (+0200) Subject: Fix poll timeout with symmetric peer and poll 0 X-Git-Tag: 1.28-pre1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2656a20bc40e3b5fad9efae66fe4bd4c4af30dd;p=thirdparty%2Fchrony.git Fix poll timeout with symmetric peer and poll 0 --- diff --git a/ntp_core.c b/ntp_core.c index 412bbc80..eac5a19f 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<