]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: fix log message for replaced source
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 26 Mar 2020 10:51:17 +0000 (11:51 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 26 Mar 2020 14:26:58 +0000 (15:26 +0100)
commita608496fafb22f27fed8175cb04d265de51df9b3
tree7a98af1ac914e94e4a743c05ce768550974f3768
parentc687224a11addaf40c05f6d38ba0c80f6c36560a
ntp: fix log message for replaced source

When a source was replaced and the new source had the same slot as the
old source, a wrong message was logged. Fix the condition to distinguish
correctly between changed address and port.

Fixes: 9468fd4aa680 ("ntp: allow changing port of source")
ntp_sources.c