mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-24 07:41:10 -04:00
Ensure version is always NULL for cache databases.
Plug a memory leak in the DNAME code.
This commit is contained in:
parent
e9dd5da241
commit
8a9f679d60
1 changed files with 3 additions and 1 deletions
|
|
@ -1553,7 +1553,8 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
|||
QUERY_ERROR(DNS_R_SERVFAIL);
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
} else
|
||||
version = NULL;
|
||||
|
||||
/*
|
||||
* Find the first unanswered type in the question section.
|
||||
|
|
@ -1968,6 +1969,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event) {
|
|||
if (fname == NULL)
|
||||
goto cleanup;
|
||||
result = dns_name_concatenate(prefix, tname, fname, NULL);
|
||||
dns_message_puttempname(client->message, &tname);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
if (result == ISC_R_NOSPACE) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue