mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
improve post-recursion code
This commit is contained in:
parent
db725ebe2b
commit
30b652c9f3
@ -1443,7 +1443,6 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
|||||||
|
|
||||||
client->query.attributes &= ~NS_QUERYATTR_RECURSING;
|
client->query.attributes &= ~NS_QUERYATTR_RECURSING;
|
||||||
|
|
||||||
result = event->result;
|
|
||||||
qtype = event->type;
|
qtype = event->type;
|
||||||
if (qtype == dns_rdatatype_sig)
|
if (qtype == dns_rdatatype_sig)
|
||||||
type = dns_rdatatype_any;
|
type = dns_rdatatype_any;
|
||||||
@ -1474,7 +1473,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
isc_event_free((isc_event_t **)(&event));
|
result = event->result;
|
||||||
|
|
||||||
goto resume;
|
goto resume;
|
||||||
} else
|
} else
|
||||||
@ -2117,6 +2116,8 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
|||||||
query_releasename(client, &zfname);
|
query_releasename(client, &zfname);
|
||||||
dns_db_detach(&zdb);
|
dns_db_detach(&zdb);
|
||||||
}
|
}
|
||||||
|
if (event != NULL)
|
||||||
|
isc_event_free((isc_event_t **)(&event));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AA bit.
|
* AA bit.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user