]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: ignore order of resolved addresses when replacing tentative source
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 5 Apr 2016 15:15:26 +0000 (17:15 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 5 Apr 2016 16:03:46 +0000 (18:03 +0200)
commitdec1d2bfb21f9a731b29aceca8b5d9bfe82f83ff
tree481f6d77faa5f811fb31df474b209feb27258608
parent62e66bda60dd1ceecc7cb04fb95fbc783e1474da
ntp: ignore order of resolved addresses when replacing tentative source

If the replaced source never had a valid reply (e.g. because it was a
bad replacement), ignore the order of addresses from the resolver to not
get stuck to a pair of addresses if the order doesn't change, or a group
of IPv4/IPv6 addresses if the resolver prefers inaccessible IP family.
ntp_sources.c