Skip to content

Commit

Permalink
fix: answer section is always validated
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Nov 1, 2024
1 parent ca5a2b5 commit 4d62421
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/zdns/dnssec.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ func (r *Resolver) validateChainOfDNSSECTrust(ctx context.Context, msg *dns.Msg,
typeToRRSets := make(map[uint16][]dns.RR)
typeToRRSigs := make(map[uint16][]*dns.RRSIG)

if msg.Authoritative {
updateTypeMapWithRRs(typeToRRSets, typeToRRSigs, msg.Answer)
} else {
updateTypeMapWithRRs(typeToRRSets, typeToRRSigs, msg.Answer)
if !msg.Authoritative && isIterative {
updateTypeMapWithRRs(typeToRRSets, typeToRRSigs, msg.Ns)
}

Expand Down

0 comments on commit 4d62421

Please sign in to comment.