mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Don't do DS checks over disabled address families
This commit is contained in:
parent
d026dbe536
commit
05472e63e8
@ -6020,6 +6020,8 @@ dns_zone_setparentals(dns_zone_t *zone, isc_sockaddr_t *addresses,
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
report_no_active_addresses(zone, addresses, count, "parental-agents");
|
||||
|
||||
/*
|
||||
* Now set up the parentals and parental key lists.
|
||||
*/
|
||||
@ -21015,7 +21017,14 @@ checkds_find_address(dns_checkds_t *checkds) {
|
||||
dns_adb_t *adb = NULL;
|
||||
|
||||
REQUIRE(DNS_CHECKDS_VALID(checkds));
|
||||
options = DNS_ADBFIND_WANTEVENT | DNS_ADBFIND_INET | DNS_ADBFIND_INET6;
|
||||
|
||||
options = DNS_ADBFIND_WANTEVENT;
|
||||
if (isc_net_probeipv4() != ISC_R_DISABLED) {
|
||||
options |= DNS_ADBFIND_INET;
|
||||
}
|
||||
if (isc_net_probeipv6() != ISC_R_DISABLED) {
|
||||
options |= DNS_ADBFIND_INET6;
|
||||
}
|
||||
|
||||
dns_view_getadb(checkds->zone->view, &adb);
|
||||
if (adb == NULL) {
|
||||
@ -21315,6 +21324,10 @@ checkds_send(dns_zone_t *zone) {
|
||||
src = dns_remote_sourceaddr(&zone->parentals);
|
||||
INSIST(isc_sockaddr_pf(&src) == isc_sockaddr_pf(&dst));
|
||||
|
||||
if (isc_sockaddr_disabled(&dst)) {
|
||||
goto next;
|
||||
}
|
||||
|
||||
/* TODO: glue the transport to the checkds request */
|
||||
|
||||
if (checkds_isqueued(zone, NULL, &dst, key, transport)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user