mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +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;
|
||||
|
||||
result = event->result;
|
||||
qtype = event->type;
|
||||
if (qtype == dns_rdatatype_sig)
|
||||
type = dns_rdatatype_any;
|
||||
@ -1474,7 +1473,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
isc_event_free((isc_event_t **)(&event));
|
||||
result = event->result;
|
||||
|
||||
goto resume;
|
||||
} else
|
||||
@ -2117,6 +2116,8 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
||||
query_releasename(client, &zfname);
|
||||
dns_db_detach(&zdb);
|
||||
}
|
||||
if (event != NULL)
|
||||
isc_event_free((isc_event_t **)(&event));
|
||||
|
||||
/*
|
||||
* AA bit.
|
||||
|
Loading…
x
Reference in New Issue
Block a user