2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Merge branch 'each-silence-coverity' into 'main'

silence dead code warning from coverity

See merge request isc-projects/bind9!5494
This commit is contained in:
Evan Hunt
2021-10-13 16:52:20 +00:00

View File

@@ -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.