From: Mark Andrews Date: Tue, 28 Nov 2023 06:26:41 +0000 (+1100) Subject: Zone transfers should honour -4 and -6 options X-Git-Tag: v9.20.0~16^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecdde04e63277e2bed8d1d861470de80ab0f49e1;p=thirdparty%2Fbind9.git Zone transfers should honour -4 and -6 options Check if the address family has been disabled when transferring zones. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 16afcc7b879..a28cd78a432 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -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.