From: Mark Andrews Date: Mon, 18 Feb 2019 01:57:35 +0000 (+1100) Subject: fix the use of dns_wildcardname as an optimisation in DLZ X-Git-Tag: v9.15.0~113^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=cb32cd98bda3a7e57ad098eeda128c3a2ffcc95e;p=thirdparty%2Fbind9.git fix the use of dns_wildcardname as an optimisation in DLZ --- diff --git a/lib/dns/sdlz.c b/lib/dns/sdlz.c index 1104bbcc057..cb78eaad421 100644 --- a/lib/dns/sdlz.c +++ b/lib/dns/sdlz.c @@ -613,9 +613,9 @@ getnodedata(dns_db_t *db, const dns_name_t *name, bool create, const dns_name_t *wild; dns_fixedname_init(&fixed); - if (i == dlabels) + if (i == dlabels - 1) { wild = dns_wildcardname; - else { + } else { dns_name_t *fname; fname = dns_fixedname_name(&fixed); dns_name_getlabelsequence(name, i + 1,