]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the logged ZONEVERSION serial number 12338/head
authorEvan Hunt <each@isc.org>
Wed, 1 Jul 2026 20:01:42 +0000 (13:01 -0700)
committerEvan Hunt <each@isc.org>
Thu, 23 Jul 2026 05:59:17 +0000 (05:59 +0000)
The serial number in the ZONEVERSION log message was computed
incorrectly; this has been fixed.

lib/dns/resolver.c

index 1af2157bb3c3211efa97c0ad17c99ca70567bf7e..adcbefb94e121b625ae2214f545255443cd317b2 100644 (file)
@@ -7602,7 +7602,7 @@ log_zoneversion(unsigned char *version, size_t version_len, unsigned char *nsid,
        isc_sockaddr_format(&query->addrinfo->sockaddr, addrbuf,
                            sizeof(addrbuf));
        if (version[1] == 0 && version_len == 6) {
-               uint32_t serial = version[2] << 24 | version[3] << 2 |
+               uint32_t serial = version[2] << 24 | version[3] << 16 |
                                  version[4] << 8 | version[5];
                isc_log_write(DNS_LOGCATEGORY_ZONEVERSION,
                              DNS_LOGMODULE_RESOLVER, level,