mirror of
https://github.com/coredns/coredns.git
synced 2026-04-09 13:35:33 -04:00
fix(dnssec): avoid caching empty signing results (#7996)
This commit is contained in:
@@ -143,7 +143,9 @@ func (d Dnssec) sign(rrs []dns.RR, signerName string, ttl, incep, expir uint32,
|
||||
}
|
||||
sigs = append(sigs, sig)
|
||||
}
|
||||
d.set(k, sigs)
|
||||
if len(sigs) > 0 {
|
||||
d.set(k, sigs)
|
||||
}
|
||||
return sigs, nil
|
||||
})
|
||||
return sigs.([]dns.RR), err
|
||||
|
||||
Reference in New Issue
Block a user