Skip to content

Commit

Permalink
groupRRs: fix max RRsets value
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Mar 18, 2024
1 parent 8c55b1c commit 4cad381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dnssec/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func groupRRs(rrs []dns.RR) (dnssecRRSets []dnssecRRSet, err error) {
// For well formed DNSSEC DNS answers, there should be at most
// N/2 signed RRSets (grouped by qname-qtype-qclass) where N is
// the number of total answers.
maxRRSets := len(rrs) / 2 //nolint:gomnd
maxRRSets := len(rrs) // all unsigned RRs
dnssecRRSets = make([]dnssecRRSet, 0, maxRRSets)
type typeZoneKey struct {
rrType uint16
Expand Down

0 comments on commit 4cad381

Please sign in to comment.