mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
In incremental_cleaning_action(), detach the node returned by
dns_dbiterator_current(). [RT #1007]
This commit is contained in:
parent
f78762623b
commit
f3083bc781
@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cache.c,v 1.36 2001/04/11 20:37:42 bwelling Exp $ */
|
||||
/* $Id: cache.c,v 1.37 2001/04/11 22:15:00 tale Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -659,6 +659,12 @@ incremental_cleaning_action(isc_task_t *task, isc_event_t *event) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* The node was not needed, but was required by
|
||||
* dns_dbiterator_current(). Give up its reference.
|
||||
*/
|
||||
dns_db_detachnode(cleaner->cache->db, &node);
|
||||
|
||||
/*
|
||||
* Step to the next node.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user