+13 December 2021: Wouter
+ - Fix to pick up other class local zone information before unlock.
+
10 December 2021: George
- Allow local-data for classes other than IN to inherit a configured
local-zone's type if possible, instead of defaulting to type
rr_name, len, labs, LDNS_RR_CLASS_IN, rr_type);
if(z) {
uint8_t* name = memdup(z->name, z->namelen);
+ size_t znamelen = z->namelen;
+ int znamelabs = z->namelabs;
+ enum localzone_type ztype = z->type;
lock_rw_unlock(&zones->lock);
if(!name) {
log_err("out of memory");
z =
#endif
lz_enter_zone_dname(zones, name,
- z->namelen, z->namelabs,
- z->type, rr_class))) {
+ znamelen, znamelabs,
+ ztype, rr_class))) {
free(rr_name);
return 0;
}