]> 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:49:58 +0000 (13:49 +0000)
commita634488a24f9be05d50a4a67f0d2bf4182161697
tree060c534f01d24953c3a85f3bc395346b1f343633
parentd510221f7e3b83ee78df1292f642aadb55ef8642
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.

(cherry picked from commit 72b1760ea6cd415efe9868aad97c982fea8b0a42)
lib/dns/catz.c