From: Juergen Perlinger Date: Fri, 1 Apr 2016 17:18:25 +0000 (+0200) Subject: [Bug 3031] ntp broadcastclient unable to synchronize to an server when the time of... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc04f0c2d20d47b7ccc75accb621ce08fd1e6fe0;p=thirdparty%2Fntp.git [Bug 3031] ntp broadcastclient unable to synchronize to an server when the time of server changed - adjust pull cycle of broadcast client to trensmission of brodcast server bk: 56fead61cmzz8IaWaLN7YZ-pZhgCpw --- diff --git a/libntp/ntp_worker.c b/libntp/ntp_worker.c index 087f06c95..d1d09c0ee 100644 --- a/libntp/ntp_worker.c +++ b/libntp/ntp_worker.c @@ -267,7 +267,7 @@ process_blocking_resp( void harvest_blocking_responses(void) { - int idx; + size_t idx; blocking_child* cp; u_int scseen, scdone; diff --git a/ntpd/ntp_proto.c b/ntpd/ntp_proto.c index b3e803d91..dfbc58d5a 100644 --- a/ntpd/ntp_proto.c +++ b/ntpd/ntp_proto.c @@ -2008,6 +2008,7 @@ process_packet( return; } } + peer->nextdate = current_time + (1u << peer->ppoll) - 2u; p_del = peer->delay; p_offset += p_del / 2;