Skip to content

Commit

Permalink
chore: error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Nov 19, 2024
1 parent 3d7db6f commit 769ec0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zdns/dnssec.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ func (v *dNSSECValidator) findSEPs(signerDomain string, dnskeyMap map[uint16]*dn
}

if len(sepKeys) == 0 {
v.r.verboseLog(depth, "DNSSEC: No SEP found for signer domain", signerDomain)
return nil, trace, errors.New("no SEP matching DS found")
}

Expand Down Expand Up @@ -422,7 +423,7 @@ func (v *dNSSECValidator) validateRRSIG(rrSetType uint16, rrSet []dns.RR, rrsigs
_, zskMap, updatedTrace, err := v.getDNSKEYs(rrsig.SignerName, trace, depth+1)
dnskeyMap = zskMap
if err != nil {
lastErr = fmt.Errorf("failed to retrieve DNSKEYs for signer domain %s: %v", rrsig.SignerName, err)
lastErr = err
continue
}
trace = updatedTrace
Expand Down

0 comments on commit 769ec0b

Please sign in to comment.