]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix logging a uint32_t SOA serial value in dns_catz_update_from_db()
authorAram Sargsyan <aram@isc.org>
Wed, 14 Dec 2022 14:40:31 +0000 (14:40 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 15 Dec 2022 13:24:58 +0000 (13:24 +0000)
commit72b1760ea6cd415efe9868aad97c982fea8b0a42
tree4d07c380f7237af57f54ac9a6b120363560a4f2a
parentde232ab446d3aa3f5b93013c8c7f789cd5ad4013
Fix logging a uint32_t SOA serial value in dns_catz_update_from_db()

The dns_catz_update_from_db() function prints serial number as a signed
number (with "%d" in the format string), but the `vers` variable's type
is 'uint32_t'. This breaks serials bigger than 2^31.

Use PRIu32 instead of "d" in the format string.
lib/dns/catz.c