mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
tried to ascend a level in dns_rbtnodechain_next when at top level
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rbt.c,v 1.45 1999/04/20 22:01:00 tale Exp $ */
|
/* $Id: rbt.c,v 1.46 1999/04/22 14:16:52 tale Exp $ */
|
||||||
|
|
||||||
/* Principal Authors: DCL */
|
/* Principal Authors: DCL */
|
||||||
|
|
||||||
@@ -2076,13 +2076,12 @@ dns_rbtnodechain_next(dns_rbtnodechain_t *chain, dns_name_t *name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (successor == NULL) {
|
if (successor == NULL && chain->level_count > 0) {
|
||||||
/*
|
/*
|
||||||
* Reached the root without having traversed
|
* Reached the root without having traversed
|
||||||
* any left pointers, so this level is done.
|
* any left pointers, so this level is done.
|
||||||
*/
|
*/
|
||||||
INSIST(chain->level_count > 0 &&
|
INSIST(chain->ancestor_count > 0);
|
||||||
chain->ancestor_count > 0);
|
|
||||||
current = chain->levels[--chain->level_count];
|
current = chain->levels[--chain->level_count];
|
||||||
chain->ancestor_count--;
|
chain->ancestor_count--;
|
||||||
new_origin = ISC_TRUE;
|
new_origin = ISC_TRUE;
|
||||||
|
Reference in New Issue
Block a user