- Fix to pick up other class local zone information before unlock.

This commit is contained in:
W.C.A. Wijngaards 2021-12-13 10:00:53 +01:00
parent 2c1a5203a5
commit 83c712ca60
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,6 @@
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

View File

@ -1057,6 +1057,9 @@ lz_setup_implicit(struct local_zones* zones, struct config_file* cfg)
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");
@ -1068,8 +1071,8 @@ lz_setup_implicit(struct local_zones* zones, struct config_file* cfg)
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;
}