mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Ensure version is always NULL for cache databases.
Plug a memory leak in the DNAME code.
This commit is contained in:
@@ -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) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user