+1239. [bug] Under certain circumstances named could continue to
+ use a name after it had been freed triggering
+ INSIST() failures. [RT #2614]
--- 9.2.1rc2 released ---
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: query.c,v 1.198.2.6 2002/02/08 03:57:12 marka Exp $ */
+/* $Id: query.c,v 1.198.2.7 2002/03/28 05:10:09 marka Exp $ */
#include <config.h>
isc_region_t r;
/*
- * We assume the name data referred to by qname and tname won't
- * go away.
+ * We assume the name data referred to by tname won't go away.
*/
REQUIRE(anamep != NULL);
if (result != ISC_R_SUCCESS)
return (result);
dns_rdataset_init(rdataset);
- dns_name_clone(qname, *anamep);
+ result = dns_name_dup(qname, client->mctx, *anamep);
+ if (result != ISC_R_SUCCESS) {
+ dns_message_puttemprdataset(client->message, &rdataset);
+ return (result);
+ }
rdatalist->type = type;
rdatalist->covers = 0;