Don't do DS checks over disabled address families

(cherry picked from commit 05472e63e8)
This commit is contained in:
Mark Andrews 2023-11-30 16:46:50 +11:00
parent 542e891287
commit 69dde597b9

View file

@ -6392,6 +6392,8 @@ dns_zone_setparentals(dns_zone_t *zone, const isc_sockaddr_t *parentals,
goto unlock;
}
report_no_active_addresses(zone, parentals, count, "parental-agents");
/*
* Now set up the parentals and parental key lists
*/
@ -21800,6 +21802,16 @@ checkds_send(dns_zone_t *zone) {
dst = zone->parentals[i];
if (isc_sockaddr_disabled(&dst)) {
if (key != NULL) {
dns_tsigkey_detach(&key);
}
if (transport != NULL) {
dns_transport_detach(&transport);
}
continue;
}
/* TODO: glue the transport to the checkds request */
if (checkds_isqueued(zone, &dst, key, transport)) {
@ -21827,6 +21839,12 @@ checkds_send(dns_zone_t *zone) {
"checkds: create DS query for "
"parent %d failed",
i);
if (key != NULL) {
dns_tsigkey_detach(&key);
}
if (transport != NULL) {
dns_transport_detach(&transport);
}
continue;
}
zone_iattach(zone, &checkds->zone);