]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
only test for prefixlen <= 63
authorMark Andrews <marka@isc.org>
Mon, 3 Dec 2018 05:26:54 +0000 (16:26 +1100)
committerMark Andrews <marka@isc.org>
Mon, 3 Dec 2018 06:04:59 +0000 (17:04 +1100)
(cherry picked from commit 5744415a75b794dad51f65ee354bd976f29dcbe8)

lib/bind9/check.c

index dd79cc736fd8d6cad457042db2277f177f53f431..d8352910ce097d187eae4c741c76aeda16d5023a 100644 (file)
@@ -554,7 +554,7 @@ check_dns64(cfg_aclconfctx_t *actx, const cfg_obj_t *voptions,
                                continue;
                        }
                        nbytes = prefixlen / 8 + 4;
-                       if (prefixlen >= 32 && prefixlen <= 64)
+                       if (prefixlen <= 64)
                                nbytes++;
                        if (memcmp(sa.type.in6.s6_addr, zeros, nbytes) != 0) {
                                char netaddrbuf[ISC_NETADDR_FORMATSIZE];