mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:49:59 -04:00
Don't catenate an absolute name with "." in the detail() function's
check of dns_rbtnodechain_current().
This commit is contained in:
parent
93b01c7295
commit
4997d113e1
1 changed files with 9 additions and 1 deletions
|
|
@ -162,7 +162,15 @@ detail(dns_rbt_t *rbt, dns_name_t *name) {
|
|||
|
||||
if (result == DNS_R_SUCCESS) {
|
||||
printf("\n name from dns_rbtnodechain_current: ");
|
||||
result = dns_name_concatenate(foundname, origin,
|
||||
|
||||
/*
|
||||
* If foundname is absolute, it includes the origin (which
|
||||
* is intrinsically known here to be just ".").
|
||||
*/
|
||||
|
||||
result = dns_name_concatenate(foundname,
|
||||
dns_name_isabsolute(foundname) ?
|
||||
NULL : origin,
|
||||
fullname, NULL);
|
||||
if (result == DNS_R_SUCCESS)
|
||||
print_name(fullname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue