From 6dc79bfdafe38c9ce811b84e2d4c71e6cf9f46b4 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 2 Aug 1999 05:54:10 +0000 Subject: [PATCH] unintialized variables --- bin/named/query.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/named/query.c b/bin/named/query.c index c50483c5a4..ede9e01a3e 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -172,6 +172,7 @@ find(ns_client_t *client, dns_rdatatype_t type) { else return (ISC_R_SUCCESS); } + isc_buffer_available(&dbuf->buffer, &r); isc_buffer_init(&b, r.base, r.length, ISC_BUFFERTYPE_BINARY); fname = NULL; result = dns_message_gettempname(client->message, &fname); @@ -286,6 +287,7 @@ find(ns_client_t *client, dns_rdatatype_t type) { while (result == ISC_R_SUCCESS) { dns_rdatasetiter_current(rdsiter, rdataset); ISC_LIST_APPEND(fname->list, rdataset, link); + rdataset = NULL; result = dns_message_gettemprdataset( client->message, &rdataset);