Commit e90994e3 authored by Mark Andrews's avatar Mark Andrews
Browse files

1799. [bug] 'rndc flushname' failed to flush negative cache

                        entries. [RT #13438]
parent e9aca33f
......@@ -74,7 +74,8 @@
1800. [bug] Changes #1719 allowed a INSIST to be triggered.
[RT #13428]
1799. [placeholder] rt13438
1799. [bug] 'rndc flushname' failed to flush negative cache
entries. [RT #13438]
1798. [func] The server syntax has been extended to support a
range of servers. [RT #11132]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: cache.c,v 1.57 2004/03/05 05:09:18 marka Exp $ */
/* $Id: cache.c,v 1.58 2005/03/15 02:48:58 marka Exp $ */
#include <config.h>
......@@ -1021,27 +1021,10 @@ dns_cache_flushname(dns_cache_t *cache, dns_name_t *name) {
dns_rdataset_init(&rdataset);
dns_rdatasetiter_current(iter, &rdataset);
for (result = dns_rdataset_first(&rdataset);
result == ISC_R_SUCCESS;
result = dns_rdataset_next(&rdataset))
{
dns_rdata_t rdata = DNS_RDATA_INIT;
dns_rdatatype_t covers;
dns_rdataset_current(&rdataset, &rdata);
if (rdata.type == dns_rdatatype_rrsig)
covers = dns_rdata_covers(&rdata);
else
covers = 0;
result = dns_db_deleterdataset(cache->db, node, NULL,
rdata.type, covers);
if (result != ISC_R_SUCCESS &&
result != DNS_R_UNCHANGED)
break;
}
result = dns_db_deleterdataset(cache->db, node, NULL,
rdataset.type, rdataset.covers);
dns_rdataset_disassociate(&rdataset);
if (result != ISC_R_NOMORE)
if (result != ISC_R_SUCCESS && result != DNS_R_UNCHANGED)
break;
}
if (result == ISC_R_NOMORE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment