mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-02 04:49:34 -05:00
- Fix for zonemd, that domain-insecure zones work without dnssec.
This commit is contained in:
parent
7ec290255d
commit
c802298fca
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
23 February 2021: Wouter
|
||||
- Fix for zonemd, that domain-insecure zones work without dnssec.
|
||||
|
||||
22 February 2021: Wouter
|
||||
- Fix #431: Squelch permission denied errors for tcp connect
|
||||
and udp connect from the logs, unless at high verbosity.
|
||||
|
|
|
|||
|
|
@ -8243,7 +8243,14 @@ void auth_zone_verify_zonemd(struct auth_zone* z, struct module_env* env,
|
|||
if(env->anchors)
|
||||
anchor = anchors_lookup(env->anchors, z->name, z->namelen,
|
||||
z->dclass);
|
||||
if(anchor && query_dname_compare(z->name, anchor->name) == 0) {
|
||||
if(anchor && anchor->numDS == 0 && anchor->numDNSKEY == 0) {
|
||||
/* domain-insecure trust anchor for unsigned zones */
|
||||
lock_basic_unlock(&anchor->lock);
|
||||
if(only_online)
|
||||
return;
|
||||
dnskey = NULL;
|
||||
is_insecure = 1;
|
||||
} else if(anchor && query_dname_compare(z->name, anchor->name) == 0) {
|
||||
if(only_online) {
|
||||
lock_basic_unlock(&anchor->lock);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue