From 4997d113e1b0362e25f0a682bb7c7c7ef03b9440 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 23 Apr 1999 05:00:38 +0000 Subject: [PATCH] Don't catenate an absolute name with "." in the detail() function's check of dns_rbtnodechain_current(). --- bin/tests/rbt_test.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/tests/rbt_test.c b/bin/tests/rbt_test.c index 8a448564e4..d4ddd7bdee 100644 --- a/bin/tests/rbt_test.c +++ b/bin/tests/rbt_test.c @@ -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);