From 276f1d9a380affd06e5fd9a29c30d0ebd433ed36 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 13 Oct 2004 22:24:18 +0000 Subject: [PATCH] 1744. [bug] If tuple2msgname() failed to convert a tuple to a name a REQUIRE could be triggered. [RT #12796] --- CHANGES | 3 +++ lib/dns/xfrin.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 57729df6c9..9a8d8dd6f6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1744. [bug] If tuple2msgname() failed to convert a tuple to + a name a REQUIRE could be triggered. [RT #12796] + 1743. [placeholder] rt12790 1742. [placeholder] rt12788 diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index efd5090d76..c1f62a78d5 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: xfrin.c,v 1.137 2004/09/16 04:54:03 marka Exp $ */ +/* $Id: xfrin.c,v 1.138 2004/10/13 22:24:18 marka Exp $ */ #include @@ -923,9 +923,10 @@ tuple2msgname(dns_difftuple_t *tuple, dns_message_t *msg, dns_name_t **target) failure: - if (rds != NULL) + if (rds != NULL) { dns_rdataset_disassociate(rds); dns_message_puttemprdataset(msg, &rds); + } if (rdl != NULL) { ISC_LIST_UNLINK(rdl->rdata, rdata, link); dns_message_puttemprdatalist(msg, &rdl);