From 8a9f679d608fa86ad1987358ac82e0ebcf9c602a Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Mon, 18 Oct 1999 21:02:48 +0000 Subject: [PATCH] Ensure version is always NULL for cache databases. Plug a memory leak in the DNAME code. --- bin/named/query.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/named/query.c b/bin/named/query.c index 62267da15a..63721f19d8 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -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) { /*