From 697de685e18fb6e09607d2ffbd24a60523fd98c8 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 31 Jan 2000 15:10:29 +0000 Subject: [PATCH] In xfrin_logv, do not omit the final dot of the zone name if the zone name is dns_rootname. --- lib/dns/xfrin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index ec4ae6db8d..728fb60357 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: xfrin.c,v 1.41 2000/01/28 23:48:57 gson Exp $ */ + /* $Id: xfrin.c,v 1.42 2000/01/31 15:10:29 tale Exp $ */ #include @@ -1146,9 +1146,13 @@ xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr, char mastermem[256]; isc_result_t result; char msgmem[2048]; + isc_boolean_t omit_final_dot = ISC_TRUE; + + if (dns_name_equal(zonename, dns_rootname)) + omit_final_dot = ISC_FALSE; isc_buffer_init(&znbuf, znmem, sizeof(znmem), ISC_BUFFERTYPE_TEXT); - result = dns_name_totext(zonename, ISC_TRUE, &znbuf); + result = dns_name_totext(zonename, omit_final_dot, &znbuf); if (result != DNS_R_SUCCESS) { isc_buffer_clear(&znbuf); isc_buffer_putmem(&znbuf, (unsigned char *)"",