mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Remove dead code
Remove code from dns_zone_setparentals() that cannot be reached now that set_serverslist() returns void.
This commit is contained in:
@@ -6454,7 +6454,6 @@ void
|
|||||||
dns_zone_setparentals(dns_zone_t *zone, const isc_sockaddr_t *parentals,
|
dns_zone_setparentals(dns_zone_t *zone, const isc_sockaddr_t *parentals,
|
||||||
dns_name_t **keynames, dns_name_t **tlsnames,
|
dns_name_t **keynames, dns_name_t **tlsnames,
|
||||||
uint32_t count) {
|
uint32_t count) {
|
||||||
isc_result_t result = ISC_R_SUCCESS;
|
|
||||||
isc_sockaddr_t *newaddrs = NULL;
|
isc_sockaddr_t *newaddrs = NULL;
|
||||||
isc_dscp_t *newdscps = NULL;
|
isc_dscp_t *newdscps = NULL;
|
||||||
dns_name_t **newkeynames = NULL;
|
dns_name_t **newkeynames = NULL;
|
||||||
@@ -6485,9 +6484,6 @@ dns_zone_setparentals(dns_zone_t *zone, const isc_sockaddr_t *parentals,
|
|||||||
set_serverslist(count, parentals, &newaddrs, NULL, &newdscps, keynames,
|
set_serverslist(count, parentals, &newaddrs, NULL, &newdscps, keynames,
|
||||||
&newkeynames, tlsnames, &newtlsnames, zone->mctx);
|
&newkeynames, tlsnames, &newtlsnames, zone->mctx);
|
||||||
INSIST(newdscps == NULL);
|
INSIST(newdscps == NULL);
|
||||||
if (result != ISC_R_SUCCESS) {
|
|
||||||
goto unlock;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Everything is ok so attach to the zone.
|
* Everything is ok so attach to the zone.
|
||||||
|
Reference in New Issue
Block a user