mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:32:11 -04:00
do not try to append "." to "."
This commit is contained in:
parent
d41e7a38de
commit
292c7d395e
1 changed files with 8 additions and 1 deletions
|
|
@ -3038,6 +3038,13 @@ dbiterator_next(dns_dbiterator_t *iterator) {
|
|||
return (result);
|
||||
}
|
||||
|
||||
static inline isc_boolean_t
|
||||
rootname(dns_name_t *name) {
|
||||
if (dns_name_countlabels(name) == 1 && dns_name_isabsolute(name))
|
||||
return (ISC_TRUE);
|
||||
return (ISC_FALSE);
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
dbiterator_current(dns_dbiterator_t *iterator, dns_dbnode_t **nodep,
|
||||
dns_name_t *name)
|
||||
|
|
@ -3056,7 +3063,7 @@ dbiterator_current(dns_dbiterator_t *iterator, dns_dbnode_t **nodep,
|
|||
resume_iteration(rbtdbiter);
|
||||
|
||||
if (name != NULL) {
|
||||
if (rbtdbiter->common.relative_names)
|
||||
if (rbtdbiter->common.relative_names || rootname(nodename))
|
||||
origin = NULL;
|
||||
result = dns_name_concatenate(nodename, origin, name, NULL);
|
||||
if (result != DNS_R_SUCCESS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue