mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
dns_rbtnodechain_first() no longer requires name and origin
to be passed. dns_rbtnodechain_next() no longer fails if name is not passed.
This commit is contained in:
parent
e26a96b245
commit
af16f35cf9
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rbt.c,v 1.60 1999/10/12 14:19:47 tale Exp $ */
|
/* $Id: rbt.c,v 1.61 1999/10/13 22:50:39 marka Exp $ */
|
||||||
|
|
||||||
/* Principal Authors: DCL */
|
/* Principal Authors: DCL */
|
||||||
|
|
||||||
@ -2127,7 +2127,8 @@ dns_rbtnodechain_next(dns_rbtnodechain_t *chain, dns_name_t *name,
|
|||||||
* the second level or below.
|
* the second level or below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
NODENAME(chain->end, name);
|
if (name != NULL)
|
||||||
|
NODENAME(chain->end, name);
|
||||||
|
|
||||||
if (new_origin) {
|
if (new_origin) {
|
||||||
if (origin != NULL)
|
if (origin != NULL)
|
||||||
@ -2152,7 +2153,6 @@ dns_rbtnodechain_first(dns_rbtnodechain_t *chain, dns_rbt_t *rbt,
|
|||||||
{
|
{
|
||||||
dns_result_t result;
|
dns_result_t result;
|
||||||
|
|
||||||
REQUIRE(name != NULL && origin != NULL);
|
|
||||||
REQUIRE(VALID_RBT(rbt));
|
REQUIRE(VALID_RBT(rbt));
|
||||||
REQUIRE(VALID_CHAIN(chain));
|
REQUIRE(VALID_CHAIN(chain));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user