]> git.ipfire.org Git - thirdparty/chrony.git/commit
client: fix waitsync command to reconnect to server
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 26 Jan 2022 15:00:36 +0000 (16:00 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 26 Jan 2022 15:11:01 +0000 (16:11 +0100)
commit759580aa6f32fcc591ff357c12b54c22a8e03b91
treed573127055536659a4d2300a8476796982b17ea9
parentb61cbed6895fcd3eae4c8458a69995870a22a5e0
client: fix waitsync command to reconnect to server

If chronyc waitsync was started before chronyd, it would try all
addresses (Unix socket, IPv4, IPv6) and get stuck with no address, not
getting any response later when chronyd was running.

Reset the address index in open_io() when returning with failure to
allow the next call to start with the first address again.

Reported-by: Jan Mikkelsen <janm@transactionware.com>
client.c