]> 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 05:26:54 +0000 (16:26 +1100)
lib/bind9/check.c

index b3098938a67df8528f600e6d88dd1ab9fce93398..953b7746a415e1b5a045154daeafee4f6a9b9c17 100644 (file)
@@ -563,7 +563,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];