mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
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>
This commit is contained in: