mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 01:49:59 -04:00
attempt to create a node at the flushtree name
(cherry picked from commit dd185fb371)
This commit is contained in:
parent
2a76b0a54e
commit
5ff9fb2299
1 changed files with 9 additions and 1 deletions
|
|
@ -1214,10 +1214,16 @@ static isc_result_t
|
|||
cleartree(dns_db_t *db, dns_name_t *name) {
|
||||
isc_result_t result, answer = ISC_R_SUCCESS;
|
||||
dns_dbiterator_t *iter = NULL;
|
||||
dns_dbnode_t *node = NULL;
|
||||
dns_dbnode_t *node = NULL, *top = NULL;
|
||||
dns_fixedname_t fnodename;
|
||||
dns_name_t *nodename;
|
||||
|
||||
/*
|
||||
* Create the node if it doesn't exist so dns_dbiterator_seek()
|
||||
* can find it. We will continue even if this fails.
|
||||
*/
|
||||
(void)dns_db_findnode(db, name, ISC_TRUE, &top);
|
||||
|
||||
dns_fixedname_init(&fnodename);
|
||||
nodename = dns_fixedname_name(&fnodename);
|
||||
|
||||
|
|
@ -1262,6 +1268,8 @@ cleartree(dns_db_t *db, dns_name_t *name) {
|
|||
dns_db_detachnode(db, &node);
|
||||
if (iter != NULL)
|
||||
dns_dbiterator_destroy(&iter);
|
||||
if (top != NULL)
|
||||
dns_db_detachnode(db, &top);
|
||||
|
||||
return (answer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue