]> git.ipfire.org Git - thirdparty/chrony.git/commit
client: avoid passing uninitialized address to format_name()
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 5 Jun 2023 14:10:46 +0000 (16:10 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 8 Jun 2023 13:56:19 +0000 (15:56 +0200)
commitc11a0529557d48c1471c7620319ca527c6366585
tree11b73089e6c0f8496000517ff9f8f0f195d245c7
parent109970f687a5f2735c913e6f28c290a93a216439
client: avoid passing uninitialized address to format_name()

The clang memory sanitizer seems to trigger on an uninitialized value
passed to format_name() when the source is a refclock, even though the
value is not used for anything. Pass 0 in this case to avoid the error.
client.c