Commit bd7dc548 authored by Evan Hunt's avatar Evan Hunt
Browse files

Merge branch '884-patches-to-review-3-v9_11' into 'v9_11'

fix the use of dns_wildcardname as an optimisation in DLZ

See merge request !1630
parents ad39501b 09ce08a8
Pipeline #11461 passed with stages
in 56 seconds
......@@ -621,17 +621,20 @@ getnodedata(dns_db_t *db, dns_name_t *name, bool create,
dns_name_t *wild;
dns_fixedname_init(&fixed);
if (i == dlabels)
if (i == dlabels - 1) {
wild = dns_wildcardname;
else {
wild = dns_fixedname_name(&fixed);
} else {
dns_name_t *fname;
fname = dns_fixedname_name(&fixed);
dns_name_getlabelsequence(name, i + 1,
dlabels - i - 1,
wild);
fname);
result = dns_name_concatenate(dns_wildcardname,
wild, wild, NULL);
fname, fname,
NULL);
if (result != ISC_R_SUCCESS)
return (result);
wild = fname;
}
isc_buffer_init(&b, wildstr, sizeof(wildstr));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment