]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Zone transfers should honour -4 and -6 options
authorMark Andrews <marka@isc.org>
Tue, 28 Nov 2023 06:26:41 +0000 (17:26 +1100)
committerMark Andrews <marka@isc.org>
Mon, 3 Jun 2024 08:34:31 +0000 (18:34 +1000)
Check if the address family has been disabled when transferring
zones.

lib/dns/zone.c

index 16afcc7b879a0d431e5b619b5bb96ea0554f6ce2..a28cd78a4322ad27e6e53303f82a96db567856a2 100644 (file)
@@ -14150,6 +14150,10 @@ again:
        curraddr = dns_remote_curraddr(&zone->primaries);
        isc_netaddr_fromsockaddr(&primaryip, &curraddr);
 
+       if (isc_sockaddr_disabled(&curraddr)) {
+               goto skip_primary;
+       }
+
        /*
         * First, look for a tsig key in the primaries statement, then
         * try for a server key.