mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
1022. [bug] Allow hints to be completely empty. [RT #1802]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
||||
1022. [bug] Allow hints to be completely empty. [RT #1802]
|
||||
|
||||
1021 [bug] Win32 timestamp was one month later than it should
|
||||
have been. SYSTEMTIME starts with January=1.
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rootns.c,v 1.20 2001/08/27 17:21:56 gson Exp $ */
|
||||
/* $Id: rootns.c,v 1.21 2001/09/30 03:02:47 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -76,6 +76,9 @@ in_rootns(dns_rdataset_t *rootns, dns_name_t *name) {
|
||||
dns_rdata_t rdata = DNS_RDATA_INIT;
|
||||
dns_rdata_ns_t ns;
|
||||
|
||||
if (!dns_rdataset_isassociated(rootns))
|
||||
return (ISC_R_NOTFOUND);
|
||||
|
||||
result = dns_rdataset_first(rootns);
|
||||
while (result == ISC_R_SUCCESS) {
|
||||
dns_rdataset_current(rootns, &rdata);
|
||||
@@ -145,16 +148,12 @@ check_hints(dns_db_t *db) {
|
||||
name = dns_fixedname_name(&fixname);
|
||||
|
||||
dns_rdataset_init(&rootns);
|
||||
result = dns_db_find(db, dns_rootname, NULL, dns_rdatatype_ns, 0,
|
||||
now, NULL, name, &rootns, NULL);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup;
|
||||
(void)dns_db_find(db, dns_rootname, NULL, dns_rdatatype_ns, 0,
|
||||
now, NULL, name, &rootns, NULL);
|
||||
result = dns_db_createiterator(db, ISC_FALSE, &dbiter);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup;
|
||||
result = dns_dbiterator_first(dbiter);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup;
|
||||
while (result == ISC_R_SUCCESS) {
|
||||
result = dns_dbiterator_current(dbiter, &node, name);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
|
Reference in New Issue
Block a user