2
0
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:
Bob Halley
1999-10-18 21:02:48 +00:00
parent e9dd5da241
commit 8a9f679d60

View File

@@ -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) {
/*