2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

4365. [bug] Address zone reference counting errors involving

nxdomain-redirect. [RT #42258]
This commit is contained in:
Mark Andrews
2016-05-13 11:54:25 +10:00
parent 32148399a2
commit c3beecc1bc
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
4365. [bug] Address zone reference counting errors involving
nxdomain-redirect. [RT #42258]
4364. [port] freebsd: add -Wl,-E to loader flags [RT #41690]
4363. [port] Turn off triggering UAC when running BINDInstall

View File

@@ -6384,6 +6384,8 @@ redirect2(ns_client_t *client, dns_name_t *name, dns_rdataset_t *rdataset,
&db, &version, &is_zonep);
if (result != ISC_R_SUCCESS)
return (ISC_R_NOTFOUND);
if (zone != NULL)
dns_zone_detach(&zone);
/*
* Lookup the requested data in the redirect zone.
@@ -7966,6 +7968,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
client->query.redirect.authoritative = authoritative;
db = NULL;
node = NULL;
zone = NULL;
rdataset = NULL;
sigrdataset = NULL;
goto cleanup;