Commit 611500b7 authored by Keith Coleman's avatar Keith Coleman Committed by GitHub

plugin/dnssec: interface type correction for `periodicClean` sig validity check (#4608)

Signed-off-by: default avatarKeith C <keith@fraudmarc.com>
parent 84871118
......@@ -33,10 +33,11 @@ func periodicClean(c *cache.Cache, stop <-chan struct{}) {
// the signature
is75 := time.Now().UTC().Add(sixDays)
c.Walk(func(items map[uint64]interface{}, key uint64) bool {
sig := items[key].(*dns.RRSIG)
if !sig.ValidityPeriod(is75) {
for _, rr := range items[key].([]dns.RR) {
if !rr.(*dns.RRSIG).ValidityPeriod(is75) {
delete(items, key)
}
}
return true
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment