]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3031] ntp broadcastclient unable to synchronize to an server when the time of...
authorJuergen Perlinger <perlinger@ntp.org>
Fri, 1 Apr 2016 17:18:25 +0000 (19:18 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Fri, 1 Apr 2016 17:18:25 +0000 (19:18 +0200)
 - adjust pull cycle of broadcast client to trensmission of brodcast server

bk: 56fead61cmzz8IaWaLN7YZ-pZhgCpw

libntp/ntp_worker.c
ntpd/ntp_proto.c

index 087f06c95308c9df1c513da9c69e13af56123b21..d1d09c0ee84936f94776d0010b74d5071f3b718d 100644 (file)
@@ -267,7 +267,7 @@ process_blocking_resp(
 void
 harvest_blocking_responses(void)
 {
-       int             idx;
+       size_t          idx;
        blocking_child* cp;
        u_int           scseen, scdone;
 
index b3e803d91ba1b3457bc5c92eef48722de83e3a95..dfbc58d5af234c5c4381f4c9f0ae426dd0b6bea3 100644 (file)
@@ -2008,6 +2008,7 @@ process_packet(
                                return;
                        }
                }
+               peer->nextdate = current_time + (1u << peer->ppoll) - 2u;
                p_del = peer->delay;
                p_offset += p_del / 2;