From af16f35cf9f5d129e0e3048e8f282b062eadc8a7 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 13 Oct 1999 22:50:39 +0000 Subject: [PATCH] dns_rbtnodechain_first() no longer requires name and origin to be passed. dns_rbtnodechain_next() no longer fails if name is not passed. --- lib/dns/rbt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 24bea144b0..f50759f5b5 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -15,7 +15,7 @@ * 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 */ @@ -2127,7 +2127,8 @@ dns_rbtnodechain_next(dns_rbtnodechain_t *chain, dns_name_t *name, * the second level or below. */ - NODENAME(chain->end, name); + if (name != NULL) + NODENAME(chain->end, name); if (new_origin) { if (origin != NULL) @@ -2152,7 +2153,6 @@ dns_rbtnodechain_first(dns_rbtnodechain_t *chain, dns_rbt_t *rbt, { dns_result_t result; - REQUIRE(name != NULL && origin != NULL); REQUIRE(VALID_RBT(rbt)); REQUIRE(VALID_CHAIN(chain));