mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-15 07:02:40 -04:00
deal with negative responses in query_simplefind()
This commit is contained in:
parent
83ffabbfe1
commit
ecda717550
1 changed files with 8 additions and 1 deletions
|
|
@ -416,6 +416,8 @@ query_simplefind(void *arg, dns_name_t *name, dns_rdatatype_t type,
|
|||
dns_zone_t *zone;
|
||||
|
||||
REQUIRE(NS_CLIENT_VALID(client));
|
||||
REQUIRE(rdataset != NULL);
|
||||
REQUIRE(sigrdataset != NULL);
|
||||
|
||||
dns_rdataset_init(&zrdataset);
|
||||
dns_rdataset_init(&zsigrdataset);
|
||||
|
|
@ -520,8 +522,13 @@ query_simplefind(void *arg, dns_name_t *name, dns_rdatatype_t type,
|
|||
* Otherwise, the glue is the best answer.
|
||||
*/
|
||||
result = ISC_R_SUCCESS;
|
||||
} else if (result != ISC_R_SUCCESS)
|
||||
} else if (result != ISC_R_SUCCESS) {
|
||||
if (rdataset->methods != NULL)
|
||||
dns_rdataset_disassociate(rdataset);
|
||||
if (sigrdataset->methods != NULL)
|
||||
dns_rdataset_disassociate(sigrdataset);
|
||||
result = DNS_R_NOTFOUND;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (zrdataset.methods != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue