Remove duplicate configured trust anchors.

Well-known trust anchors can turn up in multiple config files.

Leaving the duplicates makes logging messy and costs some
CPU checking the same DS twice.
This commit is contained in:
Simon Kelley committed 2026-02-16 22:20:05 +00:00
1 parent 3f2bfca3df
commit 32a54fc8a5
2 files changed
+22 -4

No files matched your search

+1 -1
View File
@@ -1600,7 +1600,7 @@ void cache_reload(void)
#ifdef HAVE_DNSSEC
for (ds = daemon->ds; ds; ds = ds->next)
if ((cache = get_config_crec()))
if (ds->name && (cache = get_config_crec()))
{
if (!(cache->addr.ds.keydata = blockdata_alloc(ds->digest, ds->digestlen)))