From: Mark Andrews Date: Fri, 30 Mar 2012 01:05:13 +0000 (+1100) Subject: 3302. [bug] dns_dnssec_findmatchingkeys could fail to find X-Git-Tag: v9.10.0a1~1250 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=840659f1d7e09b9cd4af283aeadfbfe173b57a06;p=thirdparty%2Fbind9.git 3302. [bug] dns_dnssec_findmatchingkeys could fail to find keys if the zone name contained character that required special mappings. [RT #28600] --- diff --git a/CHANGES b/CHANGES index 07805aabb4f..5dfe715e70b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +3302. [bug] dns_dnssec_findmatchingkeys could fail to find + keys if the zone name contained character that + required special mappings. [RT #28600] + 3301. [contrib] Update queryperf to build on darwin. Add -R flag for non-recursive queries. [RT #28565] diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c index 637f08b59a8..ed945254789 100644 --- a/lib/dns/dnssec.c +++ b/lib/dns/dnssec.c @@ -1254,7 +1254,7 @@ dns_dnssec_findmatchingkeys(dns_name_t *origin, const char *directory, isc_dir_init(&dir); isc_buffer_init(&b, namebuf, sizeof(namebuf) - 1); - RETERR(dns_name_totext(origin, ISC_FALSE, &b)); + RETERR(dns_name_tofilenametext(origin, ISC_FALSE, &b)); len = isc_buffer_usedlength(&b); namebuf[len] = '\0';