summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound/iterator/iter_delegpt.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2022-09-23 14:20:02 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2022-09-23 14:20:02 +0000
commitce26e151f028f8e2b768e5f9d6aaf39e2df4dd5f (patch)
treee94b32bd4580a735aba0a8c1be0bc27e62ea1746 /usr.sbin/unbound/iterator/iter_delegpt.c
parent5711df0fdd9bd6fa8a7329ad60c18e69088ec176 (diff)
merge unbound 1.16.3
Diffstat (limited to 'usr.sbin/unbound/iterator/iter_delegpt.c')
-rw-r--r--usr.sbin/unbound/iterator/iter_delegpt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/unbound/iterator/iter_delegpt.c b/usr.sbin/unbound/iterator/iter_delegpt.c
index 4bffa1b3a7d..fd07aaa1335 100644
--- a/usr.sbin/unbound/iterator/iter_delegpt.c
+++ b/usr.sbin/unbound/iterator/iter_delegpt.c
@@ -78,6 +78,7 @@ struct delegpt* delegpt_copy(struct delegpt* dp, struct regional* region)
if(!delegpt_add_ns(copy, region, ns->name, ns->lame,
ns->tls_auth_name, ns->port))
return NULL;
+ copy->nslist->cache_lookup_count = ns->cache_lookup_count;
copy->nslist->resolved = ns->resolved;
copy->nslist->got4 = ns->got4;
copy->nslist->got6 = ns->got6;
@@ -121,6 +122,7 @@ delegpt_add_ns(struct delegpt* dp, struct regional* region, uint8_t* name,
ns->namelen = len;
dp->nslist = ns;
ns->name = regional_alloc_init(region, name, ns->namelen);
+ ns->cache_lookup_count = 0;
ns->resolved = 0;
ns->got4 = 0;
ns->got6 = 0;
@@ -620,6 +622,7 @@ int delegpt_add_ns_mlc(struct delegpt* dp, uint8_t* name, uint8_t lame,
}
ns->next = dp->nslist;
dp->nslist = ns;
+ ns->cache_lookup_count = 0;
ns->resolved = 0;
ns->got4 = 0;
ns->got6 = 0;