2586. [bug] Missing cleanup of SIG rdataset in searching a DLZ DB

or SDB. [RT #19577]
This commit is contained in:
Tatuya JINMEI 神明達哉
2009-04-21 00:41:02 +00:00
parent cda7c783c3
commit b1b0dca146
3 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
2586. [bug] Missing cleanup of SIG rdataset in searching a DLZ DB
or SDB. [RT #19577]
2585. [bug] Uninitialized socket name could be referenced via a
statistics channel, triggering an assertion failure in
XML rendering. [RT #19427]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sdb.c,v 1.66 2008/09/24 03:16:58 tbox Exp $ */
/* $Id: sdb.c,v 1.67 2009/04/21 00:41:02 jinmei Exp $ */
/*! \file */
@@ -880,9 +880,12 @@ find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
{
result = DNS_R_ZONECUT;
dns_rdataset_disassociate(rdataset);
if (sigrdataset != NULL)
if (sigrdataset != NULL &&
dns_rdataset_isassociated
(sigrdataset)) {
dns_rdataset_disassociate
(sigrdataset);
}
} else
result = DNS_R_DELEGATION;
break;

View File

@@ -50,7 +50,7 @@
* USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sdlz.c,v 1.18 2008/09/24 02:46:22 marka Exp $ */
/* $Id: sdlz.c,v 1.19 2009/04/21 00:41:02 jinmei Exp $ */
/*! \file */
@@ -844,9 +844,12 @@ find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
{
result = DNS_R_ZONECUT;
dns_rdataset_disassociate(rdataset);
if (sigrdataset != NULL)
if (sigrdataset != NULL &&
dns_rdataset_isassociated
(sigrdataset)) {
dns_rdataset_disassociate
(sigrdataset);
}
} else
result = DNS_R_DELEGATION;
break;