fix the use of dns_wildcardname as an optimisation in DLZ

(cherry picked from commit cb32cd98bd)
This commit is contained in:
Mark Andrews
2019-03-07 20:27:57 -08:00
committed by Evan Hunt
parent 8b1e4ec8e9
commit c1489dfa4f
+2 -2
View File
@@ -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,